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
public class ZestFxUiView extends AbstractFXView
TheZestFxUiView
is an extension to theAbstractFXView
. It creates anInjector
based on theZestFxModule
andZestFxUiModule
by default. Other than that, it provides amethod
to change theGraph
that is displayed.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
-
Constructor Summary
Constructors Constructor Description ZestFxUiView()
Constructs a newZestFxUiView
.ZestFxUiView(Injector injector)
Constructs a newZestFxUiView
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setGraph(Graph graph)
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 Detail
-
ZestFxUiView
public ZestFxUiView()
Constructs a newZestFxUiView
. Uses anInjector
that is created from theZestFxModule
andZestFxUiModule
to inject its members.
-
ZestFxUiView
public ZestFxUiView(Injector injector)
Constructs a newZestFxUiView
. Uses the givenInjector
to inject its members.- Parameters:
injector
- TheInjector
that is used to inject the members of thisZestFxUiView
.
-
-
Method Detail
-
setGraph
public void setGraph(Graph graph)
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.
-
-