public abstract class AbstractFXView
extends org.eclipse.ui.part.ViewPart
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(org.eclipse.swt.widgets.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(org.eclipse.ui.IViewSite site) |
void |
setFocus() |
protected void |
unhookViewers()
Unhooks all viewers that are part of this
AbstractFXView . |
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public 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(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
protected void deactivate()
AbstractFXView
by deactivating its
IDomain
that was previously injected.public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
protected void disposeActions()
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.WorkbenchPart
protected 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(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IViewPart
init
in class org.eclipse.ui.part.ViewPart
org.eclipse.ui.PartInitException
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
protected void unhookViewers()
AbstractFXView
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.