Program: 11068
Project: 11068
Buggy source:
private void createActions(){
  openLayerAction=new BasicAction(getMessage(getOpenLayerActionLabelKey()),Icons.folder.getIcon());
  openLayerAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      openLayer();
    }
  }
);
  createLayerFromDirectoryAction=new BasicAction(getMessage(getCreateLayerFromDirectoryLabelKey()),Icons.newfolder.getIcon());
  createLayerFromDirectoryAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      createLayerFromDirectory();
    }
  }
);
  offlineAction=new SelectableAction(getMessage(getWorkOfflineLabelKey()),Icons.offline.getIcon(),WorldWind.isOfflineMode());
  offlineAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      WorldWind.setOfflineMode(offlineAction.isSelected());
    }
  }
);
  screenshotAction=new BasicAction(getMessage(getScreenshotLabelKey()),Icons.screenshot.getIcon());
  screenshotAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      saveImage();
    }
  }
);
  exitAction=new BasicAction(getMessage(getExitLabelKey()),Icons.escape.getIcon());
  exitAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      quit();
    }
  }
);
  defaultViewAction=new BasicAction(getMessage(getDefaultViewLabelKey()),Icons.home.getIcon());
  defaultViewAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      resetView();
    }
  }
);
  gotoAction=new BasicAction(getMessage(getGotoCoordsLabelKey()),Icons.crosshair45.getIcon());
  gotoAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      GoToCoordinatePanel.showGotoDialog(frame,wwd,getMessage(getGotoCoordsTitleKey()),Icons.crosshair45.getIcon());
    }
  }
);
  for (  ThemePanel panel : theme.getPanels()) {
    panelActions.add(createThemePieceAction(panel));
  }
  for (  ThemeHUD hud : theme.getHUDs()) {
    hudActions.add(createThemePieceAction(hud));
  }
  final Tessellator tess=wwd.getModel().getGlobe().getTessellator();
  skirtAction=new SelectableAction(getMessage(getRenderSkirtsLabelKey()),Icons.skirts.getIcon(),tess.isMakeTileSkirts());
  skirtAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      tess.setMakeTileSkirts(skirtAction.isSelected());
      wwd.redraw();
    }
  }
);
  wireframeAction=new SelectableAction(getMessage(getWireframeLabelKey()),Icons.wireframe.getIcon(),wwd.getModel().isShowWireframeInterior());
  wireframeAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      LayerList layers=wwd.getModel().getLayers();
      for (      Layer layer : layers) {
        if (layer instanceof Wireframeable) {
          ((Wireframeable)layer).setWireframe(wireframeAction.isSelected());
        }
      }
      wwd.redraw();
    }
  }
);
  wireframeElevationAction=new SelectableAction(getMessage(getWireframeElevationLabelKey()),Icons.wireframe.getIcon(),wwd.getModel().isShowWireframeInterior());
  wireframeElevationAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      wireframeDepthAction.setEnabled(wireframeAction.isSelected());
      wwd.getModel().setShowWireframeInterior(wireframeAction.isSelected());
      wwd.redraw();
    }
  }
);
  final WireframeRectangularTessellator tessellator=tess instanceof WireframeRectangularTessellator ? (WireframeRectangularTessellator)tess : null;
  boolean depth=tessellator != null && tessellator.isWireframeDepthTesting();
  wireframeDepthAction=new SelectableAction(getMessage(getWireframeDepthLabelKey()),Icons.zwireframe.getIcon(),depth);
  wireframeDepthAction.setEnabled(wireframeAction.isSelected());
  wireframeDepthAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      tessellator.setWireframeDepthTesting(wireframeDepthAction.isSelected());
      wwd.redraw();
    }
  }
);
  fullscreenAction=new BasicAction(getMessage(getFullscreenLabelKey()),Icons.monitor.getIcon());
  fullscreenAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      setFullscreen(!isFullscreen());
    }
  }
);
  settingsAction=new BasicAction(getMessage(getPreferencesLabelKey()),Icons.settings.getIcon());
  settingsAction.addActionListener(new ActionListener(){
    private boolean visible=false;
    @Override public void actionPerformed(    ActionEvent e){
      if (!visible) {
        visible=true;
        SettingsDialog settingsDialog=new SettingsDialog(frame,getMessage(getPreferencesTitleKey()),Icons.settings.getIcon());
        settingsDialog.setVisible(true);
        visible=false;
        afterSettingsChange();
      }
    }
  }
);
  helpAction=new BasicAction(getMessage(getHelpLabelKey()),Icons.help.getIcon());
  helpAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      try {
        DefaultLauncher.openURL(URLTransformer.transform(new URL(HELP_URL)));
      }
 catch (      MalformedURLException e1) {
      }
    }
  }
);
  controlsAction=new BasicAction(getMessage(getControlsLabelKey()),Icons.keyboard.getIcon());
  controlsAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      showControls();
    }
  }
);
  aboutAction=new BasicAction(getMessage(getAboutLabelKey()),Icons.about.getIcon());
  aboutAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      new AboutDialog(frame,getMessage(getAboutTitleKey()));
    }
  }
);
  saveSectorAction=new BasicAction(getMessage(getSaveSectorLabelKey()),Icons.save.getIcon());
  saveSectorAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      saveSector();
    }
  }
);
  clipSectorAction=new BasicAction(getMessage(getClipSectorLabelKey()),Icons.cut.getIcon());
  clipSectorAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      clipSector();
    }
  }
);
  clearClipAction=new BasicAction(getMessage(getClearClipLabelKey()),Icons.cutdelete.getIcon());
  clearClipAction.setEnabled(false);
  clearClipAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      clearClipping();
    }
  }
);
  wmsBrowserAction=new BasicAction(getMessage(getLaunchWmsBrowserLabelKey()),Icons.wmsbrowser.getIcon());
  wmsBrowserAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      showWmsBrowser();
    }
  }
);
}

Fixed version (ground truth):
private void createActions(){
  openLayerAction=new BasicAction(getMessage(getOpenLayerActionLabelKey()),Icons.folder.getIcon());
  openLayerAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      openLayer();
    }
  }
);
  createLayerFromDirectoryAction=new BasicAction(getMessage(getCreateLayerFromDirectoryLabelKey()),Icons.newfolder.getIcon());
  createLayerFromDirectoryAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      createLayerFromDirectory();
    }
  }
);
  offlineAction=new SelectableAction(getMessage(getWorkOfflineLabelKey()),Icons.offline.getIcon(),WorldWind.isOfflineMode());
  offlineAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      WorldWind.setOfflineMode(offlineAction.isSelected());
    }
  }
);
  screenshotAction=new BasicAction(getMessage(getScreenshotLabelKey()),Icons.screenshot.getIcon());
  screenshotAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      saveImage();
    }
  }
);
  exitAction=new BasicAction(getMessage(getExitLabelKey()),Icons.escape.getIcon());
  exitAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      quit();
    }
  }
);
  defaultViewAction=new BasicAction(getMessage(getDefaultViewLabelKey()),Icons.home.getIcon());
  defaultViewAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      resetView();
    }
  }
);
  gotoAction=new BasicAction(getMessage(getGotoCoordsLabelKey()),Icons.crosshair45.getIcon());
  gotoAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      GoToCoordinatePanel.showGotoDialog(frame,wwd,getMessage(getGotoCoordsTitleKey()),Icons.crosshair45.getIcon());
    }
  }
);
  for (  ThemePanel panel : theme.getPanels()) {
    panelActions.add(createThemePieceAction(panel));
  }
  for (  ThemeHUD hud : theme.getHUDs()) {
    hudActions.add(createThemePieceAction(hud));
  }
  final Tessellator tess=wwd.getModel().getGlobe().getTessellator();
  skirtAction=new SelectableAction(getMessage(getRenderSkirtsLabelKey()),Icons.skirts.getIcon(),tess.isMakeTileSkirts());
  skirtAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      tess.setMakeTileSkirts(skirtAction.isSelected());
      wwd.redraw();
    }
  }
);
  wireframeAction=new SelectableAction(getMessage(getWireframeLabelKey()),Icons.wireframe.getIcon(),wwd.getModel().isShowWireframeInterior());
  wireframeAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      LayerList layers=wwd.getModel().getLayers();
      for (      Layer layer : layers) {
        if (layer instanceof Wireframeable) {
          ((Wireframeable)layer).setWireframe(wireframeAction.isSelected());
        }
      }
      wwd.redraw();
    }
  }
);
  wireframeElevationAction=new SelectableAction(getMessage(getWireframeElevationLabelKey()),Icons.wireframe.getIcon(),wwd.getModel().isShowWireframeInterior());
  wireframeElevationAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      wireframeDepthAction.setEnabled(wireframeElevationAction.isSelected());
      wwd.getModel().setShowWireframeInterior(wireframeElevationAction.isSelected());
      wwd.redraw();
    }
  }
);
  final WireframeRectangularTessellator tessellator=tess instanceof WireframeRectangularTessellator ? (WireframeRectangularTessellator)tess : null;
  boolean depth=tessellator != null && tessellator.isWireframeDepthTesting();
  wireframeDepthAction=new SelectableAction(getMessage(getWireframeDepthLabelKey()),Icons.zwireframe.getIcon(),depth);
  wireframeDepthAction.setEnabled(wireframeAction.isSelected());
  wireframeDepthAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      tessellator.setWireframeDepthTesting(wireframeDepthAction.isSelected());
      wwd.redraw();
    }
  }
);
  fullscreenAction=new BasicAction(getMessage(getFullscreenLabelKey()),Icons.monitor.getIcon());
  fullscreenAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      setFullscreen(!isFullscreen());
    }
  }
);
  settingsAction=new BasicAction(getMessage(getPreferencesLabelKey()),Icons.settings.getIcon());
  settingsAction.addActionListener(new ActionListener(){
    private boolean visible=false;
    @Override public void actionPerformed(    ActionEvent e){
      if (!visible) {
        visible=true;
        SettingsDialog settingsDialog=new SettingsDialog(frame,getMessage(getPreferencesTitleKey()),Icons.settings.getIcon());
        settingsDialog.setVisible(true);
        visible=false;
        afterSettingsChange();
      }
    }
  }
);
  helpAction=new BasicAction(getMessage(getHelpLabelKey()),Icons.help.getIcon());
  helpAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      try {
        DefaultLauncher.openURL(URLTransformer.transform(new URL(HELP_URL)));
      }
 catch (      MalformedURLException e1) {
      }
    }
  }
);
  controlsAction=new BasicAction(getMessage(getControlsLabelKey()),Icons.keyboard.getIcon());
  controlsAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      showControls();
    }
  }
);
  aboutAction=new BasicAction(getMessage(getAboutLabelKey()),Icons.about.getIcon());
  aboutAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      new AboutDialog(frame,getMessage(getAboutTitleKey()));
    }
  }
);
  saveSectorAction=new BasicAction(getMessage(getSaveSectorLabelKey()),Icons.save.getIcon());
  saveSectorAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      saveSector();
    }
  }
);
  clipSectorAction=new BasicAction(getMessage(getClipSectorLabelKey()),Icons.cut.getIcon());
  clipSectorAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      clipSector();
    }
  }
);
  clearClipAction=new BasicAction(getMessage(getClearClipLabelKey()),Icons.cutdelete.getIcon());
  clearClipAction.setEnabled(false);
  clearClipAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      clearClipping();
    }
  }
);
  wmsBrowserAction=new BasicAction(getMessage(getLaunchWmsBrowserLabelKey()),Icons.wmsbrowser.getIcon());
  wmsBrowserAction.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      showWmsBrowser();
    }
  }
);
}