|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.search.scope.Config
public class Config
The Config class is a Singleton class that provides a single storage towards all of the user configurable settings.
Method Summary | |
---|---|
java.util.List<Editor> |
getAvailableEditors()
Get a list of the available editors to use to display files. |
Editor |
getEditor()
Get the selected editor. |
static Config |
getInstance()
Get the one and only instance of the Config class |
java.lang.String |
getPath()
Get the preferred subtree path. |
boolean |
getPathHold()
Get the preferred subtree path button status |
java.util.List<java.io.File> |
getRecentConfigurations()
|
void |
setCurrentConfiguration(java.io.File file)
|
void |
setEditor(Editor editor)
Set the editor to use |
void |
setPath(java.lang.String path)
Set the preferred subtree path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Config getInstance()
public java.util.List<Editor> getAvailableEditors()
name - this key contains the display-name of the editor command - this key contains the command to display in the command field class - this key contains the name of the class that implements the editor.
public Editor getEditor()
public void setEditor(Editor editor)
editor
- The editor to use when new files shall be displayedpublic java.util.List<java.io.File> getRecentConfigurations()
public void setCurrentConfiguration(java.io.File file)
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- preferred subtree path.public boolean getPathHold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |