Class MainFrameLoadSaveHelper

java.lang.Object
edu.umd.cs.findbugs.gui2.MainFrameLoadSaveHelper
All Implemented Interfaces:
Serializable

public class MainFrameLoadSaveHelper extends Object implements Serializable
See Also:
  • Field Details

    • mainFrame

      private final MainFrame mainFrame
    • saveOpenFileChooser

      private FBFileChooser saveOpenFileChooser
    • filterOpenFileChooser

      private FBFileChooser filterOpenFileChooser
  • Constructor Details

    • MainFrameLoadSaveHelper

      public MainFrameLoadSaveHelper(MainFrame mainFrame)
  • Method Details

    • initialize

      public void initialize()
    • importFilter

      void importFilter()
      This method is for when the user wants to open a file.
    • open

      void open()
      This method is for when the user wants to open a file.
    • askToSave

      private boolean askToSave()
      Returns true if cancelled
    • openFBAFile

      boolean openFBAFile(File f)
    • openFBPFile

      boolean openFBPFile(File f)
    • exportFilter

      boolean exportFilter()
    • saveAs

      boolean saveAs()
    • convertFilterToType

      SaveType convertFilterToType(FileFilter f)
    • fileAlreadyExists

      boolean fileAlreadyExists(File f)
    • convertFile

      File convertFile(File f, SaveType fileType)
    • save

      void save()
    • saveFBAFile

      MainFrameLoadSaveHelper.SaveReturn saveFBAFile(File saveFile2)
    • saveFBPFile

      MainFrameLoadSaveHelper.SaveReturn saveFBPFile(File saveFile2)
    • printHtml

    • saveAnalysis

      Save current analysis as file passed in. Return SAVE_SUCCESSFUL if save successful. Method doesn't do much. This method is more if need to do other things in the future for saving analysis. And to keep saving naming convention.
    • prepareForFileLoad

      void prepareForFileLoad(File f, SaveType saveType)
    • closeProject

      void closeProject()
    • closeProjectInternal

      private void closeProjectInternal()
    • loadAnalysis

      void loadAnalysis(File file)
    • loadAnalysis

      void loadAnalysis(URL url)
    • loadProjectFromFile

      void loadProjectFromFile(File f)
    • mergeAnalysis

      void mergeAnalysis()