public abstract class AbstractFXView extends ViewPart
PROP_TITLE| Constructor and Description |
|---|
AbstractFXView(Injector injector)
Constructs a new
AbstractFXView that uses the given
Injector to inject its members. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
Activates this
AbstractFXView by activating the IDomain
that was previously injected. |
protected void |
createActions()
Create actions for this view and registers at the action bars of the
view's site.
|
void |
createPartControl(Composite parent) |
protected void |
deactivate()
Deactivates this
AbstractFXView by deactivating its
IDomain that was previously injected. |
void |
dispose() |
protected void |
disposeActions()
Dispose the actions created by this view.
|
java.lang.Object |
getAdapter(java.lang.Class key) |
protected javafx.embed.swt.FXCanvas |
getCanvas()
Returns the
FXCanvas that was previously created by the injected
IFXCanvasFactory. |
IViewer |
getContentViewer()
|
IDomain |
getDomain()
Returns the
IDomain that was previously injected. |
protected org.eclipse.gef.mvc.fx.ui.actions.FitToViewportActionGroup |
getFitToViewportActionGroup()
Returns the
ActionGroup that manages the fit-to-viewport actions. |
protected void |
hookViewers()
Hooks all viewers that are part of this
AbstractFXView into the
FXCanvas that was previously created by the injected
IFXCanvasFactory. |
void |
init(IViewSite site) |
void |
setFocus() |
protected void |
unhookViewers()
Unhooks all viewers that are part of this
AbstractFXView. |
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartNameaddPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListenerpublic AbstractFXView(Injector injector)
AbstractFXView that uses the given
Injector to inject its members.injector - The Injector that is used to inject the members of
this AbstractFXView.protected void activate()
AbstractFXView by activating the IDomain
that was previously injected.protected void createActions()
public void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartcreatePartControl in class WorkbenchPartprotected void deactivate()
AbstractFXView by deactivating its
IDomain that was previously injected.public void dispose()
dispose in interface IWorkbenchPartdispose in class WorkbenchPartprotected void disposeActions()
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface IAdaptablegetAdapter in class WorkbenchPartprotected javafx.embed.swt.FXCanvas getCanvas()
FXCanvas that was previously created by the injected
IFXCanvasFactory.FXCanvas that was previously created by the injected
IFXCanvasFactory.public IViewer getContentViewer()
public IDomain getDomain()
IDomain that was previously injected.IDomain that was previously injected.protected org.eclipse.gef.mvc.fx.ui.actions.FitToViewportActionGroup getFitToViewportActionGroup()
ActionGroup that manages the fit-to-viewport actions.ActionGroup that manages the fit-to-viewport actions.protected void hookViewers()
AbstractFXView into the
FXCanvas that was previously created by the injected
IFXCanvasFactory.public void init(IViewSite site) throws PartInitException
init in interface IViewPartinit in class ViewPartPartInitExceptionpublic void setFocus()
setFocus in interface IWorkbenchPartsetFocus in class WorkbenchPartprotected void unhookViewers()
AbstractFXView.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.