Class GUISaveState
java.lang.Object
edu.umd.cs.findbugs.gui2.GUISaveState
Saves all the stuff that should be saved for each run, like recent projects,
previous comments, the current docking layout and the sort order
For project related things, look in ProjectSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]private static final Stringprivate final LinkedHashSet<URI> private static final Sortables[]private static final Stringprivate byte[]private static final Stringprivate static final Stringprivate static final Stringprivate intFor Windows mainly - whether the window was maximized or notprivate static final Stringprivate floatprivate static final Stringprivate Rectangleprivate static GUISaveStateprivate static final int(package private) static final intprivate static final Stringprivate static final Stringprivate intprivate static final Stringprivate LinkedList<String> List of previous comments by the user.private static final String[]private Sortables[]private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate intprivate intprivate intprivate intprivate static final Stringprivate Fileprivate SorterTableColumnModelprivate static final Stringprivate intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidThis should be the method used to add a file for the recent menu.(package private) static voidclear()voidfileNotFound(File f) Call to remove a file from the list.voidfileReused(File f) This should be the method called to add a reused file for the recent menu.private static String[]generateSorterKeys(int numSorters) byte[]intfloatstatic GUISaveStateintReturns the list of recent files.intintintThe file to start the loading of Bugs from.(package private) SorterTableColumnModelintstatic voidbooleanremoveCustomPlugin(URL pluginId) voidsave()voidsetDockingLayout(byte[] dockingLayout) voidsetExtendedWindowState(int extendedWindowState) voidsetFontSize(float fontSize) voidsetFrameBounds(Rectangle frameBounds) voidsetPackagePrefixSegments(int packagePrefixSegments) voidsetPluginEnabled(String url) voidsetPluginsEnabled(List<String> enabledPlugins, List<String> disabledPlugins) voidsetPreviousComments(LinkedList<String> previousComments) voidsetSplitMain(int splitMain) voidsetSplitSummary(int splitSummary) voidsetSplitTop(int splitTop) voidvoidsetTabSize(int tabSize)
-
Field Details
-
instance
-
SORTERTABLELENGTH
- See Also:
-
PREVCOMMENTSSIZE
- See Also:
-
DOCKINGLAYOUT
- See Also:
-
FRAME_BOUNDS
- See Also:
-
EXTENDED_WINDOW_STATE
- See Also:
-
MAXNUMRECENTPROJECTS
static final int MAXNUMRECENTPROJECTS- See Also:
-
DEFAULT_COLUMN_HEADERS
-
RECENTPROJECTKEYS
-
MAXNUMPREVCOMMENTS
private static final int MAXNUMPREVCOMMENTS- See Also:
-
COMMENTKEYS
-
NUMPROJECTS
- See Also:
-
STARTERDIRECTORY
- See Also:
-
SPLIT_MAIN
- See Also:
-
SPLIT_TREE_COMMENTS
- See Also:
-
SPLIT_TOP
- See Also:
-
SPLIT_SUMMARY_NEW
- See Also:
-
TAB_SIZE
- See Also:
-
FONT_SIZE
- See Also:
-
PACKAGE_PREFIX_SEGEMENTS
- See Also:
-
ENABLED_PLUGINS
- See Also:
-
DISABLED_PLUGINS
- See Also:
-
CUSTOM_PLUGINS
- See Also:
-
splitMain
private int splitMain -
splitTreeComments
private int splitTreeComments -
splitTop
private int splitTop -
splitSummary
private int splitSummary -
starterDirectoryForLoadBugs
-
previousComments
List of previous comments by the user. -
useDefault
private boolean useDefault -
starterTable
-
sortColumns
-
recentFiles
-
dockingLayout
private byte[] dockingLayout -
frameBounds
-
extendedWindowState
private int extendedWindowStateFor Windows mainly - whether the window was maximized or not -
tabSize
private int tabSize -
fontSize
private float fontSize -
packagePrefixSegments
private int packagePrefixSegments -
enabledPlugins
-
disabledPlugins
-
customPlugins
-
-
Constructor Details
-
GUISaveState
private GUISaveState()
-
-
Method Details
-
generateSorterKeys
-
getInstance
-
loadInstance
public static void loadInstance() -
clear
static void clear() -
getTabSize
public int getTabSize() -
setTabSize
public void setTabSize(int tabSize) -
getPackagePrefixSegments
public int getPackagePrefixSegments() -
setPackagePrefixSegments
public void setPackagePrefixSegments(int packagePrefixSegments) -
getDockingLayout
public byte[] getDockingLayout() -
setDockingLayout
public void setDockingLayout(byte[] dockingLayout) -
fileReused
This should be the method called to add a reused file for the recent menu. -
addRecentFile
This should be the method used to add a file for the recent menu.- Parameters:
f-
-
getRecentFiles
-
fileNotFound
-
getStarterDirectoryForLoadBugs
The file to start the loading of Bugs from.- Returns:
- Returns the starterDirectoryForLoadBugs.
-
setStarterDirectoryForLoadBugs
- Parameters:
f- The starterDirectoryForLoadBugs to set.
-
save
public void save() -
getPreviousComments
- Returns:
- Returns the previousComments.
-
setPreviousComments
- Parameters:
previousComments- The previousComments to set.
-
getFrameBounds
- Returns:
- Returns the frame bounds Rectangle.
-
setFrameBounds
- Parameters:
frameBounds- The frame bourds Rectangle to set.
-
getExtendedWindowState
public int getExtendedWindowState() -
setExtendedWindowState
public void setExtendedWindowState(int extendedWindowState) -
getFontSize
public float getFontSize()- Returns:
- Returns the fontSize.
-
setFontSize
public void setFontSize(float fontSize) - Parameters:
fontSize- The fontSize to set.
-
getSplitMain
public int getSplitMain()- Returns:
- Returns the location of the main divider.
-
setSplitMain
public void setSplitMain(int splitMain) - Parameters:
splitMain- The location of the main divider to set.
-
getSplitSummary
public int getSplitSummary()- Returns:
- Returns the location of the summary divider.
-
setSplitSummary
public void setSplitSummary(int splitSummary) - Parameters:
splitSummary- The location of the summary divider to set.
-
getSplitTop
public int getSplitTop()- Returns:
- Returns the location of the top divider.
-
setSplitTop
public void setSplitTop(int splitTop) - Parameters:
splitTop- The location of the top divider to set.
-
setPluginsEnabled
-
setPluginEnabled
-
getEnabledPlugins
-
getCustomPlugins
-
addCustomPlugin
-
getDisabledPlugins
-
removeCustomPlugin
-
getStarterTable
SorterTableColumnModel getStarterTable()
-