Class MainFrameLoadSaveHelper

  • All Implemented Interfaces:
    java.io.Serializable

    public class MainFrameLoadSaveHelper
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MainFrameLoadSaveHelper

        public MainFrameLoadSaveHelper​(MainFrame mainFrame)
    • Method Detail

      • 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​(java.io.File f)
      • openFBPFile

        boolean openFBPFile​(java.io.File f)
      • exportFilter

        boolean exportFilter()
      • saveAs

        boolean saveAs()
      • convertFilterToType

        SaveType convertFilterToType​(javax.swing.filechooser.FileFilter f)
      • fileAlreadyExists

        boolean fileAlreadyExists​(java.io.File f)
      • convertFile

        java.io.File convertFile​(java.io.File f,
                                 SaveType fileType)
      • save

        void save()
      • saveAnalysis

        MainFrameLoadSaveHelper.SaveReturn saveAnalysis​(java.io.File f)
        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​(java.io.File f,
                                SaveType saveType)
      • closeProject

        void closeProject()
      • closeProjectInternal

        private void closeProjectInternal()
      • loadAnalysis

        void loadAnalysis​(java.io.File file)
      • loadAnalysis

        void loadAnalysis​(java.net.URL url)
      • loadProjectFromFile

        void loadProjectFromFile​(java.io.File f)
      • mergeAnalysis

        void mergeAnalysis()