Пример #1
0
 /**
  * Handle action events
  *
  * @param event event to handle
  */
 public void actionPerformed(ActionEvent event) {
   String cmd = event.getActionCommand();
   if (cmd.equals(GuiUtils.CMD_OK) || cmd.equals(GuiUtils.CMD_APPLY)) {
     accept();
   }
   if (cmd.equals(GuiUtils.CMD_OK) || cmd.equals(GuiUtils.CMD_CANCEL)) {
     close();
   }
   if (cmd.equals(GuiUtils.CMD_HELP)) {
     ucar.unidata.ui.Help.getDefaultHelp().gotoTarget(helpId);
   }
 }
Пример #2
0
 /** Show the help */
 private void showHelp() {
   ucar.unidata.ui.Help.setTopDir(HELP_TOP_DIR);
   ucar.unidata.ui.Help.getDefaultHelp().gotoTarget("idv.tools.stationmodeleditor");
 }