/* */ package NET.worlds.scape; /* */ /* */ import NET.worlds.console.Console; /* */ import NET.worlds.console.DialogReceiver; /* */ import NET.worlds.console.FileSysDialog; /* */ import NET.worlds.console.GammaFrame; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class SaveWidget /* */ extends ClickWidget /* */ implements DialogReceiver /* */ { /* */ private static final long serialVersionUID = 1L; /* */ /* */ public SaveWidget(ToolBar toolbar) /* */ { /* 24 */ super(toolbar, "save.gif", Console.message("Save-to-file")); /* */ } /* */ /* */ public void perform() { /* 28 */ new FileSysDialog(Console.getFrame(), this, /* 29 */ Console.message("Save-Object-As"), 1, /* 30 */ " wobject |*.wob| world |*.world;*.wor| console |*.console| pilot |*.pilot| drone |*.drone| other ||", /* */ /* 32 */ "", false); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public void dialogDone(Object who, boolean confirmed) /* */ { /* 41 */ if (confirmed) /* */ { /* 43 */ Console.getFrame().getEditTile().save(((FileSysDialog)who).fileName()); /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\SaveWidget.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */