public void actionPerformed(ActionEvent e) {
      if (!this.isEnabled()) {
        return;
      }

      if (NEW_AIRSPACE.equals(e.getActionCommand())) {
        this.createNewEntry(this.getView().getSelectedFactory());
      } else if (CLEAR_SELECTION.equals(e.getActionCommand())) {
        this.selectEntry(null, true);
      } else if (SIZE_NEW_SHAPES_TO_VIEWPORT.equals(e.getActionCommand())) {
        if (e.getSource() instanceof AbstractButton) {
          boolean selected = ((AbstractButton) e.getSource()).isSelected();
          this.setResizeNewShapesToViewport(selected);
        }
      } else if (ENABLE_EDIT.equals(e.getActionCommand())) {
        if (e.getSource() instanceof AbstractButton) {
          boolean selected = ((AbstractButton) e.getSource()).isSelected();
          this.setEnableEdit(selected);
        }
      } else if (OPEN.equals(e.getActionCommand())) {
        this.openFromFile();
      } else if (OPEN_URL.equals(e.getActionCommand())) {
        this.openFromURL();
      } else if (OPEN_DEMO_AIRSPACES.equals(e.getActionCommand())) {
        this.openFromPath(DEMO_AIRSPACES_PATH);
        this.zoomTo(
            LatLon.fromDegrees(47.6584074779224, -122.3059199579634),
            Angle.fromDegrees(-152),
            Angle.fromDegrees(75),
            750);
      } else if (REMOVE_SELECTED.equals(e.getActionCommand())) {
        this.removeEntries(Arrays.asList(this.getSelectedEntries()));
      } else if (SAVE.equals(e.getActionCommand())) {
        this.saveToFile();
      } else if (SELECTION_CHANGED.equals(e.getActionCommand())) {
        this.viewSelectionChanged();
      }
    }
 public void actionPerformed(ActionEvent e) {
   if (ACTION_COMMAND_BUTTON1.equalsIgnoreCase(e.getActionCommand())) {
     this.doActionOnButton1();
   } else if (ACTION_COMMAND_BUTTON2.equalsIgnoreCase(e.getActionCommand())) {
     this.doActionOnButton2();
   } else if (ACTION_COMMAND_BUTTON3.equalsIgnoreCase(e.getActionCommand())) {
     this.doActionOnButton3();
   } else if (ACTION_COMMAND_BUTTON4.equalsIgnoreCase(e.getActionCommand())) {
     this.doActionOnButton4();
   } else if (ACTION_COMMAND_BUTTON5.equalsIgnoreCase(e.getActionCommand())) {
     this.doActionOnButton5();
   } else if (ACTION_COMMAND_VERTICAL_EXAGGERATION.equalsIgnoreCase(e.getActionCommand())) {
     Double ve = (Double) e.getSource();
     this.doSetVerticalExaggeration(ve);
     this.wwd.redraw();
   }
 }