vocleditor.editor
Class VOCLEditor
java.lang.Object
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
vocleditor.editor.VOCLEditor
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation
public class VOCLEditor
- extends org.eclipse.ui.part.MultiPageEditorPart
- implements org.eclipse.core.runtime.IAdaptable
Main class for the GEF based VOCL editor.
Extending a Multipage-Editor.
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Method Summary |
void |
dispose()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
java.lang.Object |
getAdapter(java.lang.Class type)
|
VOCLModel.VOCLDiagram |
getVOCLModel()
Returns the navexp used by this editor. |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
addPage, addPage, addPage, addPage, createPartControl, removePage, setFocus |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, showBusy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
VOCLEditor
public VOCLEditor()
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.MultiPageEditorPart
- See Also:
MultiPageEditorPart.dispose()
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSave
in class org.eclipse.ui.part.EditorPart
- See Also:
EditorPart.doSave(org.eclipse.core.runtime.IProgressMonitor)
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interface org.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in class org.eclipse.ui.part.EditorPart
- See Also:
ISaveablePart.doSaveAs()
getAdapter
public java.lang.Object getAdapter(java.lang.Class type)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in class org.eclipse.ui.part.WorkbenchPart
- See Also:
IAdaptable.getAdapter(java.lang.Class)
getVOCLModel
public VOCLModel.VOCLDiagram getVOCLModel()
- Returns the navexp used by this editor.
- Returns:
- the navexp
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init
in interface org.eclipse.ui.IEditorPart
- Overrides:
init
in class org.eclipse.ui.part.MultiPageEditorPart
- Throws:
org.eclipse.ui.PartInitException
- See Also:
MultiPageEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface org.eclipse.ui.ISaveablePart
- Overrides:
isDirty
in class org.eclipse.ui.part.MultiPageEditorPart
- See Also:
MultiPageEditorPart.isDirty()
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
- See Also:
EditorPart.isSaveAsAllowed()