public abstract class FXView extends ViewPart
PROP_TITLE| Constructor and Description |
|---|
FXView(com.google.inject.Injector injector)
Constructs a new
FXView that uses the given Injector to
inject its members. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
|
protected javafx.embed.swt.FXCanvas |
createCanvas(Composite parent)
Creates an
FXCanvas to allow the interoperability between SWT and
JavaFX using the IFXCanvasFactory that was previously injected. |
void |
createPartControl(Composite parent) |
protected void |
deactivate()
|
void |
dispose() |
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. |
protected FXDomain |
getDomain()
Returns the
FXDomain that was previously injected. |
protected FXViewer |
getViewer()
|
protected void |
hookViewers()
Hooks all viewers that are part of this
FXView 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
FXView by unregistering
the selection listeners. |
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, removePropertyListenerprotected void activate()
protected javafx.embed.swt.FXCanvas createCanvas(Composite parent)
FXCanvas to allow the interoperability between SWT and
JavaFX using the IFXCanvasFactory that was previously injected.parent - The Composite that serves as the parent for the
created FXCanvas.FXCanvas that is created by the previously injected
IFXCanvasFactory.public void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartcreatePartControl in class WorkbenchPartprotected void deactivate()
public void dispose()
dispose in interface IWorkbenchPartdispose in class WorkbenchPartpublic 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.protected FXDomain getDomain()
FXDomain that was previously injected.FXDomain that was previously injected.protected FXViewer getViewer()
protected void hookViewers()
FXView into the
FXCanvas that was previously created by the injected
IFXCanvasFactory. Also registers listeners for the propagation of
a selection from the Eclipse Workbench to this FXView and vice
versa.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()
FXView by unregistering
the selection listeners.Copyright (c) 2014 itemis AG and others. All rights reserved.