Package org.eclipse.gef.zest.fx.ui.parts
Class ZestFxUiView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.gef.mvc.fx.ui.parts.AbstractFXView
org.eclipse.gef.zest.fx.ui.parts.ZestFxUiView
- All Implemented Interfaces:
IAdaptable
,IExecutableExtension
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
The
ZestFxUiView
is an extension to the AbstractFXView
. It
creates an Injector
based on the ZestFxModule
and
ZestFxUiModule
by default. Other than that, it provides a
method
to change the Graph
that is
displayed.-
Field Summary
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
ConstructorDescriptionConstructs a newZestFxUiView
.ZestFxUiView
(Injector injector) Constructs a newZestFxUiView
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Changes the contents of theAbstractFXView.getContentViewer()
to the givenGraph
.Methods inherited from class org.eclipse.gef.mvc.fx.ui.parts.AbstractFXView
activate, createActions, createPartControl, deactivate, dispose, disposeActions, getAdapter, getCanvas, getContentViewer, getDomain, getFitToViewportActionGroup, hookViewers, init, setFocus, unhookViewers
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
ZestFxUiView
public ZestFxUiView()Constructs a newZestFxUiView
. Uses anInjector
that is created from theZestFxModule
andZestFxUiModule
to inject its members. -
ZestFxUiView
Constructs a newZestFxUiView
. Uses the givenInjector
to inject its members.- Parameters:
injector
- TheInjector
that is used to inject the members of thisZestFxUiView
.
-
-
Method Details
-
setGraph
Changes the contents of theAbstractFXView.getContentViewer()
to the givenGraph
. The contents are changed by changing theIViewer.contentsProperty()
.- Parameters:
graph
- The new contents for the viewer.
-