public interface IEditor extends IChildWindow, IFileLocker
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_NAME
Name of the editor group
|
| Modifier and Type | Method and Description |
|---|---|
IAbstractFile |
getAbstractFile()
Returns the abstract file that was loaded into the editor.
|
IFileInterpreter |
getFileInterpreter()
Returns the assigned file interpreter.
|
IEditorProvider |
getProvider() |
void |
initialize()
Called by the framework before the editor is displayed.
|
boolean |
isModified()
Returns true when the editor has changed the file and not written the
changes yet.
|
boolean |
isOpen()
Return a flag indicating whether the edior is opened or not.
|
void |
save()
This method saves the current opened file.
|
canClose, getMenuBar, getToolBar, getToolTipText, windowActivatedgetComponent, getIcon, getTitlestatic final String GROUP_NAME
void save()
throws EditorNotOpenedException
EditorNotOpenedException - - if the editor was not openedvoid initialize()
boolean isOpen()
boolean isModified()
throws EditorNotOpenedException
EditorNotOpenedException - - if no file was opened in the editorIFileInterpreter getFileInterpreter() throws EditorNotOpenedException
EditorNotOpenedException - - if the editor was not openedIAbstractFile getAbstractFile() throws EditorNotOpenedException
EditorNotOpenedException - - if the editor was not openedIEditorProvider getProvider()