home *** CD-ROM | disk | FTP | other *** search
- import mug.app.Command;
-
- public class MapCanvasCommand extends Command {
- public static final int DUPLICATE_SELECTED = 0;
- public static final int DELETE_SELECTED = 1;
- public static final int UNDO = 2;
- private MainShell _app;
- private int _which;
-
- public MapCanvasCommand(MainShell var1, int var2) {
- this._app = var1;
- this._which = var2;
- }
-
- public void execute() {
- switch (this._which) {
- case 0:
- this._app.getMapCanvas().duplicateSelected();
- break;
- case 1:
- this._app.getMapCanvas().deleteSelected();
- case 2:
- }
-
- ((Command)this).executeNext();
- }
- }
-