home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / CSIME.ARJ / CSIME.ZIP / csime / LoadImageFileCommand.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-02-09  |  911 b   |  22 lines

  1. import java.io.File;
  2. import java.net.URL;
  3. import mug.app.Command;
  4.  
  5. public class LoadImageFileCommand extends Command {
  6.    private MainShell _app;
  7.  
  8.    public LoadImageFileCommand(MainShell var1) {
  9.       this._app = var1;
  10.    }
  11.  
  12.    public void execute() {
  13.       File var1 = this._app.showFileDialog("Load Image", 0, new ImageFilenameFilter());
  14.       if (var1 != null) {
  15.          this._app.setBusy(true);
  16.          this._app.getMapCanvas().loadImage((URL)null, (File)null, var1.getPath());
  17.          this._app.setBusy(false);
  18.          ((Command)this).executeNext();
  19.       }
  20.    }
  21. }
  22.