public FileSaveAction(EditorPanel aClient) {
   super();
   this.client = aClient;
   this.initMenuDefinition(
       "MnuTxtFileSave",
       KeyStroke.getKeyStroke(KeyEvent.VK_S, PlatformShortcuts.getDefaultModifier()));
   this.setMenuItemName(ResourceMgr.MNU_TXT_FILE);
   this.setEnabled(this.client.hasFileLoaded());
 }
Example #2
0
 public FindAction(Searchable aClient) {
   super();
   this.client = aClient;
   this.initMenuDefinition(
       "MnuTxtFind",
       KeyStroke.getKeyStroke(KeyEvent.VK_F, PlatformShortcuts.getDefaultModifier()));
   this.setIcon("find");
   this.setMenuItemName(ResourceMgr.MNU_TXT_EDIT);
   this.setCreateToolbarSeparator(true);
   this.setDescriptiveName(ResourceMgr.getString("TxtEdPrefix") + " " + getMenuLabel());
 }