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, 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, removeListenerObjectpublic 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.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartprotected void deactivate()
AbstractFXView by deactivating its
IDomain that was previously injected.public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartprotected void disposeActions()
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.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(org.eclipse.ui.IViewSite site)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IViewPartinit in class org.eclipse.ui.part.ViewPartorg.eclipse.ui.PartInitExceptionpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartprotected void unhookViewers()
AbstractFXView.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.