edu.umd.cs.findbugs.gui2

Class GUISaveState

public class GUISaveState extends Object

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

Author: Dan

Method Summary
voidaddRecentFile(File f)
This should be the method used to add a file for the recent menu.
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.
byte[]getDockingLayout()
floatgetFontSize()
RectanglegetFrameBounds()
static GUISaveStategetInstance()
LinkedList<String>getPreviousComments()
ArrayList<File>getRecentFiles()
Returns the list of recent files.
intgetSplitMain()
intgetSplitSummary()
intgetSplitTop()
intgetSplitTreeComments()
FilegetStarterDirectoryForLoadBugs()
The file to start the loading of Bugs from.
intgetTabSize()
static voidloadInstance()
voidsave()
voidsetDockingLayout(byte[] dockingLayout)
voidsetFontSize(float fontSize)
voidsetFrameBounds(Rectangle frameBounds)
voidsetPreviousComments(LinkedList<String> previousComments)
voidsetSplitMain(int splitMain)
voidsetSplitSummary(int splitSummary)
voidsetSplitTop(int splitTop)
voidsetSplitTreeComments(int splitTreeComments)
voidsetStarterDirectoryForLoadBugs(File f)
voidsetTabSize(int tabSize)

Method Detail

addRecentFile

public void addRecentFile(File f)
This should be the method used to add a file for the recent menu.

Parameters: f

fileNotFound

public void fileNotFound(File f)
Call to remove a file from the list.

Parameters: f

fileReused

public void fileReused(File f)
This should be the method called to add a reused file for the recent menu.

getDockingLayout

public byte[] getDockingLayout()

getFontSize

public float getFontSize()

Returns: Returns the fontSize.

getFrameBounds

public Rectangle getFrameBounds()

Returns: Returns the frame bounds Rectangle.

getInstance

public static GUISaveState getInstance()

getPreviousComments

public LinkedList<String> getPreviousComments()

Returns: Returns the previousComments.

getRecentFiles

public ArrayList<File> getRecentFiles()
Returns the list of recent files.

Returns:

getSplitMain

public int getSplitMain()

Returns: Returns the location of the main divider.

getSplitSummary

public int getSplitSummary()

Returns: Returns the location of the summary divider.

getSplitTop

public int getSplitTop()

Returns: Returns the location of the top divider.

getSplitTreeComments

public int getSplitTreeComments()

Returns: Returns the location of the tree-comments divider.

getStarterDirectoryForLoadBugs

public File getStarterDirectoryForLoadBugs()
The file to start the loading of Bugs from.

Returns: Returns the starterDirectoryForLoadBugs.

getTabSize

public int getTabSize()

loadInstance

public static void loadInstance()

save

public void save()

setDockingLayout

public void setDockingLayout(byte[] dockingLayout)

setFontSize

public void setFontSize(float fontSize)

Parameters: fontSize The fontSize to set.

setFrameBounds

public void setFrameBounds(Rectangle frameBounds)

Parameters: frameBounds The frame bourds Rectangle to set.

setPreviousComments

public void setPreviousComments(LinkedList<String> previousComments)

Parameters: previousComments The previousComments to set.

setSplitMain

public void setSplitMain(int splitMain)

Parameters: splitMain The location of the main divider to set.

setSplitSummary

public void setSplitSummary(int splitSummary)

Parameters: splitSummary The location of the summar divider to set.

setSplitTop

public void setSplitTop(int splitTop)

Parameters: splitTop The location of the top divider to set.

setSplitTreeComments

public void setSplitTreeComments(int splitTreeComments)

Parameters: splitTreeComments The location of the tree-comments divider to set.

setStarterDirectoryForLoadBugs

public void setStarterDirectoryForLoadBugs(File f)

Parameters: f The starterDirectoryForLoadBugs to set.

setTabSize

public void setTabSize(int tabSize)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.