Class SchemaEditorPreferences
java.lang.Object
com.illumon.iris.console.schemaeditor.SchemaEditorPreferences
- All Implemented Interfaces:
Workspace
public final class SchemaEditorPreferences extends Object implements Workspace
Persists preference settings for Schema Editor behavior. These are stored in the workspace.
Currently they include what
CasingStyle to use for formatting column names,
and whether to use underscore or nothing as a replacement character for spaces and hyphens in the source
name.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSchemaEditorPreferences.Listener -
Field Summary
-
Method Summary
Modifier and Type Method Description voidaddListener(SchemaEditorPreferences.Listener l)voidbeginEdit()voidendEdit()CasingStylegetCasingStyle()static SchemaEditorPreferencesgetInstance()StringgetReplacementChar()StringgetSchemaToolDbHost()StringgetSchemaToolExtraJvmArgs()doublegetSchemaToolHeap()org.jdom2.ElementgetWorkspaceInfo()Serialize the class into an element to be stored in the workspacebooleanisGlobalSetting()voidremoveListener(SchemaEditorPreferences.Listener l)voidsetCasingStyle(CasingStyle casingStyle)voidsetReplacementChar(String replacementChar)voidsetSchemaToolDbHost(String schemaToolDbHost)voidsetSchemaToolExtraJvmArgs(String schemaToolExtraJvmArgs)voidsetSchemaToolHeap(double schemaToolHeap)voidsetWorkspaceInfo(org.jdom2.Element workspaceInfo)Restore the class to the state defined by the data persisted in workspaceInfo
-
Field Details
-
NODE_NAME
- See Also:
- Constant Field Values
-
-
Method Details
-
getInstance
-
getReplacementChar
-
setReplacementChar
-
getCasingStyle
-
setCasingStyle
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfoin interfaceWorkspace- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-
getSchemaToolDbHost
-
setSchemaToolDbHost
-
getSchemaToolHeap
public double getSchemaToolHeap() -
setSchemaToolHeap
public void setSchemaToolHeap(double schemaToolHeap) -
getSchemaToolExtraJvmArgs
-
setSchemaToolExtraJvmArgs
-
isGlobalSetting
public boolean isGlobalSetting()- Specified by:
isGlobalSettingin interfaceWorkspace
-
addListener
-
removeListener
-
beginEdit
public void beginEdit() -
endEdit
public void endEdit()
-