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
ConstructorsConstructorDescriptionConstructs a newZestFxUiView.ZestFxUiView(Injector injector) Constructs a newZestFxUiView. -
Method Summary
Modifier and TypeMethodDescriptionvoidChanges 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, unhookViewersMethods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
ZestFxUiView
public ZestFxUiView()Constructs a newZestFxUiView. Uses anInjectorthat is created from theZestFxModuleandZestFxUiModuleto inject its members. -
ZestFxUiView
Constructs a newZestFxUiView. Uses the givenInjectorto inject its members.- Parameters:
injector- TheInjectorthat 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.
-