Class MainFrameLoadSaveHelper
java.lang.Object
edu.umd.cs.findbugs.gui2.MainFrameLoadSaveHelper
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FBFileChooserprivate final MainFrameprivate FBFileChooser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanReturns true if cancelled(package private) voidprivate void(package private) FileconvertFile(File f, SaveType fileType) (package private) SaveType(package private) boolean(package private) boolean(package private) voidThis method is for when the user wants to open a file.void(package private) voidloadAnalysis(File file) (package private) voidloadAnalysis(URL url) (package private) void(package private) void(package private) voidopen()This method is for when the user wants to open a file.(package private) booleanopenFBAFile(File f) (package private) booleanopenFBPFile(File f) (package private) voidprepareForFileLoad(File f, SaveType saveType) (package private) MainFrameLoadSaveHelper.SaveReturn(package private) voidsave()(package private) MainFrameLoadSaveHelper.SaveReturnsaveAnalysis(File f) Save current analysis as file passed in.(package private) booleansaveAs()(package private) MainFrameLoadSaveHelper.SaveReturnsaveFBAFile(File saveFile2) (package private) MainFrameLoadSaveHelper.SaveReturnsaveFBPFile(File saveFile2)
-
Field Details
-
mainFrame
-
saveOpenFileChooser
-
filterOpenFileChooser
-
-
Constructor Details
-
MainFrameLoadSaveHelper
-
-
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
-
openFBPFile
-
exportFilter
boolean exportFilter() -
saveAs
boolean saveAs() -
convertFilterToType
-
fileAlreadyExists
-
convertFile
-
save
void save() -
saveFBAFile
-
saveFBPFile
-
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
-
closeProject
void closeProject() -
closeProjectInternal
private void closeProjectInternal() -
loadAnalysis
-
loadAnalysis
-
loadProjectFromFile
-
mergeAnalysis
void mergeAnalysis()
-