Package net.officefloor.eclipse.ide
Class AbstractAdaptedEditorPart<R extends Model,RE extends java.lang.Enum<RE>,O>
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- org.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
-
- net.officefloor.eclipse.ide.AbstractAdaptedEditorPart<R,RE,O>
-
- 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.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
ActivityEditPart
,SectionEditPart
,WoofEditPart
public abstract class AbstractAdaptedEditorPart<R extends Model,RE extends java.lang.Enum<RE>,O> extends org.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
EditorPart
for theAbstractAdaptedIdeEditor
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractAdaptedEditorPart()
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractAdaptedIdeEditor<R,RE,O>
createEditor(EnvironmentBridge envBridge)
Creates theAbstractAdaptedIdeEditor
.void
createPartControl(org.eclipse.swt.widgets.Composite parent)
void
dispose()
void
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
void
doSaveAs()
protected void
hookViewers()
void
init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
static void
initEditor(AbstractAdaptedIdeEditor<?,?,?> editor, java.util.function.Function<com.google.inject.Injector,org.eclipse.gef.mvc.fx.domain.IDomain> initialiser)
Initialises theAbstractAdaptedIdeEditor
.boolean
isSaveAsAllowed()
-
Methods inherited from class org.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
activate, createActions, deactivate, disposeActions, getAdapter, getCanvas, getContentViewer, getDomain, isDirty, markNonDirty, setFocus, unhookViewers
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Method Detail
-
initEditor
public static void initEditor(AbstractAdaptedIdeEditor<?,?,?> editor, java.util.function.Function<com.google.inject.Injector,org.eclipse.gef.mvc.fx.domain.IDomain> initialiser)
Initialises theAbstractAdaptedIdeEditor
.- Parameters:
editor
-AbstractAdaptedIdeEditor
to initialise.initialiser
- Initialiser of theAbstractAdaptedIdeEditor
.
-
createEditor
public abstract AbstractAdaptedIdeEditor<R,RE,O> createEditor(EnvironmentBridge envBridge)
Creates theAbstractAdaptedIdeEditor
.- Parameters:
envBridge
-EnvironmentBridge
.- Returns:
AbstractAdaptedIdeEditor
.
-
init
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
- Specified by:
init
in interfaceorg.eclipse.ui.IEditorPart
- Overrides:
init
in classorg.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
- Throws:
org.eclipse.ui.PartInitException
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
createPartControl
in classorg.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
-
hookViewers
protected void hookViewers()
- Overrides:
hookViewers
in classorg.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
-
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interfaceorg.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in classorg.eclipse.ui.part.EditorPart
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interfaceorg.eclipse.ui.ISaveablePart
- Specified by:
doSave
in classorg.eclipse.ui.part.EditorPart
-
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interfaceorg.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in classorg.eclipse.ui.part.EditorPart
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classorg.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor
-
-