public abstract class AbstractWorkbenchModuleSettingsEditor extends java.lang.Object implements WorkbenchSettingsEditor
WorkbenchSettingsEditor
| Modifier and Type | Field and Description |
|---|---|
protected ActionBureau |
actionBureau |
protected VfsFile |
file |
protected javax.swing.JComponent |
gui |
protected Module |
module |
protected ModuleSettings |
moduleSettings |
protected java.lang.String |
name |
protected ModuleSettingsStore |
settingsStore |
protected WorkbenchApp |
workbench |
| Constructor and Description |
|---|
AbstractWorkbenchModuleSettingsEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction(java.lang.String actionName) |
void |
doAction(java.lang.String actionName,
java.lang.String... args)
Perform an action with optional arguments.
|
VfsFile |
getFile() |
javax.swing.JComponent |
getGui() |
java.lang.String |
getName() |
CoggableSettings |
getSettings()
Marker method used to require implementing classes to have a CoggableSettings field
|
SettingsStore |
getSettingsStore()
Marker method used to require implementing classes to have a SettingsStore field
|
WorkbenchApp |
getWorkbench() |
protected void |
initializeEditor() |
void |
load()
Initializes editor by loading the module associated with the WorkbenchFile.
|
void |
reloadFromStore()
Reloads settings object from the
ModuleSettingsStore |
void |
save()
Invokes saveToStore.
|
void |
saveToStore()
Reloads the ModuleSettings from the edited cog then stores it.
|
void |
setFile(VfsFile newFile) |
void |
setLine(int line) |
void |
setWorkbench(WorkbenchApp workbench) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getSettingsGuiprotected WorkbenchApp workbench
protected java.lang.String name
protected Module module
protected VfsFile file
protected javax.swing.JComponent gui
protected ActionBureau actionBureau
protected ModuleSettings moduleSettings
protected ModuleSettingsStore settingsStore
public AbstractWorkbenchModuleSettingsEditor()
protected void initializeEditor()
public void saveToStore()
saveToStore in interface SettingsEditorSettingsEditor.saveToStore()public void reloadFromStore()
ModuleSettingsStorereloadFromStore in interface SettingsEditorSettingsEditor.reloadFromStore()public CoggableSettings getSettings()
SettingsEditorgetSettings in interface SettingsEditorCoggableSettingsSettingsEditor.getSettings()public SettingsStore getSettingsStore()
SettingsEditorgetSettingsStore in interface SettingsEditorSettingsStoreSettingsEditor.getSettingsStore()public VfsFile getFile()
getFile in interface WorkbenchFileEditorWorkbenchFileEditor.getFile()public void setFile(VfsFile newFile)
setFile in interface WorkbenchFileEditorWorkbenchFileEditor.setFile(com.partnersoft.io.vfs.VfsFile)public void setLine(int line)
setLine in interface WorkbenchFileEditorWorkbenchFileEditor.setLine(int)public void load()
throws java.io.IOException
load in interface WorkbenchEditorjava.io.IOExceptionSettingsGui.edit(java.awt.Container, CoggableSettings),
WorkbenchEditor.load()public void save()
throws java.io.IOException
save in interface WorkbenchEditorjava.io.IOExceptionWorkbenchEditor.save()public java.lang.String getName()
getName in interface WorkbenchEditorWorkbenchEditor.getName()public void setWorkbench(WorkbenchApp workbench)
setWorkbench in interface WorkbenchEditorWorkbenchEditor.setWorkbench(com.partnersoft.workbench.app.WorkbenchApp)public WorkbenchApp getWorkbench()
getWorkbench in interface WorkbenchEditorWorkbenchEditor.getWorkbench()public javax.swing.JComponent getGui()
getGui in interface WorkbenchEditorWorkbenchEditor.getGui()public void doAction(java.lang.String actionName)
doAction in interface WorkbenchEditorWorkbenchEditor.doAction(java.lang.String)public void doAction(java.lang.String actionName,
java.lang.String... args)
WorkbenchEditordoAction in interface WorkbenchEditorWorkbenchEditor.doAction(java.lang.String, java.lang.String[])