public abstract class AbstractWorkbenchFileEditor extends java.lang.Object implements WorkbenchFileEditor
| Modifier and Type | Field and Description |
|---|---|
protected ActionBureau |
actionBureau |
protected VfsFile |
file |
protected javax.swing.JComponent |
gui |
protected java.lang.String |
name |
protected WorkbenchApp |
workbench |
| Constructor and Description |
|---|
AbstractWorkbenchFileEditor()
Subclasses *must* initialize name and gui in their constructors
|
| 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() |
WorkbenchApp |
getWorkbench() |
Cog |
loadCog()
Loads a cog from the current file; assumes it is Cog XML format.
|
java.lang.Object |
loadObject()
Loads an object from the current file; assumes it is Cog XML format.
|
void |
saveCog(Cog wotnot)
Saves a cog to the current file, assumes Cog XML format.
|
void |
saveObject(java.lang.Object wotnot)
Saves an object to the current file, assumes Cog XML format.
|
void |
setFile(VfsFile newFile) |
void |
setWorkbench(WorkbenchApp workbench) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLineload, saveprotected WorkbenchApp workbench
protected java.lang.String name
protected VfsFile file
protected javax.swing.JComponent gui
protected ActionBureau actionBureau
public AbstractWorkbenchFileEditor()
public VfsFile getFile()
getFile in interface WorkbenchFileEditorpublic javax.swing.JComponent getGui()
getGui in interface WorkbenchEditorpublic java.lang.String getName()
getName in interface WorkbenchEditorpublic void setFile(VfsFile newFile)
setFile in interface WorkbenchFileEditorpublic WorkbenchApp getWorkbench()
getWorkbench in interface WorkbenchEditorpublic void setWorkbench(WorkbenchApp workbench)
setWorkbench in interface WorkbenchEditorpublic void doAction(java.lang.String actionName)
doAction in interface WorkbenchEditorpublic void doAction(java.lang.String actionName,
java.lang.String... args)
WorkbenchEditordoAction in interface WorkbenchEditorpublic java.lang.Object loadObject()
throws java.io.IOException
java.io.IOExceptionpublic void saveObject(java.lang.Object wotnot)
throws java.io.IOException
java.io.IOExceptionpublic Cog loadCog() throws java.io.IOException
java.io.IOExceptionpublic void saveCog(Cog wotnot) throws java.io.IOException
java.io.IOException