Package edu.umd.cs.findbugs.gui2
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 FBFileChooser
private final MainFrame
private FBFileChooser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
Returns true if cancelled(package private) void
private void
(package private) File
convertFile
(File f, SaveType fileType) (package private) SaveType
(package private) boolean
(package private) boolean
(package private) void
This method is for when the user wants to open a file.void
(package private) void
loadAnalysis
(File file) (package private) void
loadAnalysis
(URL url) (package private) void
(package private) void
(package private) void
open()
This method is for when the user wants to open a file.(package private) boolean
openFBAFile
(File f) (package private) boolean
openFBPFile
(File f) (package private) void
prepareForFileLoad
(File f, SaveType saveType) (package private) MainFrameLoadSaveHelper.SaveReturn
(package private) void
save()
(package private) MainFrameLoadSaveHelper.SaveReturn
saveAnalysis
(File f) Save current analysis as file passed in.(package private) boolean
saveAs()
(package private) MainFrameLoadSaveHelper.SaveReturn
saveFBAFile
(File saveFile2) (package private) MainFrameLoadSaveHelper.SaveReturn
saveFBPFile
(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()
-