public void actionPerformed(ActionEvent event) {
   Object source = event.getSource();
   File atlasFolder = Settings.getInstance().getAtlasOutputDirectory();
   if (openProgramFolderButton.equals(source)) {
     try {
       OSUtilities.openFolderBrowser(atlasFolder);
     } catch (Exception e) {
       log.error("", e);
     }
   } else if (dismissWindowButton.equals(source)) {
     downloadController = null;
     closeWindow();
   } else if (abortAtlasCreationButton.equals(source)) {
     aborted = true;
     stopUpdateTask();
     if (downloadController != null) downloadController.abortAtlasCreation();
     else closeWindow();
   } else if (pauseResumeDownloadButton.equals(source)) {
     if (downloadController != null) downloadController.pauseResumeAtlasCreation();
   }
 }
 @Override
 public void windowClosing(WindowEvent e) {
   log.debug("Closing event detected for atlas progress window");
   IAtlasCreationController listener = AtlasProgressFrame.this.downloadController;
   if (listener != null) listener.abortAtlasCreation();
 }