Package org.eclipse.gef.zest.fx
Class ZestFxModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.eclipse.gef.mvc.fx.MvcFxModule
-
- org.eclipse.gef.zest.fx.ZestFxModule
-
- All Implemented Interfaces:
Module
- Direct Known Subclasses:
ZestFxJFaceModule
public class ZestFxModule extends MvcFxModule
TheZestFxModule
defines Zest.FX specific bindings additional to the bindings defined withinMvcFxModule
.
-
-
Constructor Summary
Constructors Constructor Description ZestFxModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindAbstractContentPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindChangeViewportPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindEdgeLabelPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forEdgeLabelPart
and all sub-classes.protected void
bindEdgePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forEdgePart
and all sub-classes.protected void
bindFXCircleSegmentHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Bind bend-on-drag policy toCircleSegmentHandlePart
.protected void
bindFXSquareSegmentHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Bind resize and rotate behavior toSquareSegmentHandlePart
.protected void
bindGraphPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forGraphPart
and all sub-classes.protected void
bindHidingHoverHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forHideHoverHandlePart
and all sub-classes.protected void
bindHoverHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindIContentPartFactory()
BindsIContentPartFactory
toZestFxContentPartFactory
.protected void
bindIRootPartAdaptersForContentViewer(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindIViewerAdaptersForContentViewer(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindNavigationModelAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding forNavigationModel
to the given adapter map binder that will insert the bindings intoIViewer
s.protected void
bindNodeLabelPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forNodeLabelPart
and all sub-classes.protected void
bindNodePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forNodePart
and all sub-classes.protected void
bindRootPartAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindSelectionFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindSelectionHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
protected void
bindShowHiddenNeighborsHoverHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forShowHiddenNeighborsHoverHandlePart
and all sub-classes.protected void
bindShowHiddenNeighborsOfFirstAnchorageOnClickHandlerAsShowHiddenNeighborsHoverHandlePartAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding forShowHiddenNeighborsOfFirstAnchorageOnClickHandler
to the given adapter map binder that will insert the bindings intoShowHiddenNeighborsHoverHandlePart
s.protected void
configure()
-
Methods inherited from class org.eclipse.gef.mvc.fx.MvcFxModule
bindAbstractFeedbackPartAdapters, bindAbstractHandlePartAdapters, bindAbstractVisualPartAdapters, bindClickDragGesture, bindClickDragGestureAsDomainAdapter, bindConnectedSupportAsContentViewerAdapter, bindContentBehaviorAsIRootPartAdapter, bindContentIViewerAsIDomainAdapter, bindContentPartPoolAsContentViewerAdapter, bindContentPolicyAsAbstractContentPartAdapter, bindCreationPolicyAsIRootPartAdapter, bindCursorSupportAsContentViewerAdapter, bindDeletionPolicyAsIRootPartAdapter, bindFocusAndSelectOnClickHandlerAsIRootPartAdapter, bindFocusBehaviorAsIRootPartAdapter, bindFocusFeedbackPartFactoryAsContentViewerAdapter, bindFocusModelAsContentViewerAdapter, bindFocusTraversalPolicyAsIRootPartAdapter, bindGridBehaviorAsIRootPartAdapter, bindGridModelAsContentViewerAdapter, bindHoverBehaviorAsIRootPartAdapter, bindHoverFeedbackPartFactoryAsContentViewerAdapter, bindHoverGesture, bindHoverGestureAsDomainAdapter, bindHoverIntentBehaviorAsIRootPartAdapter, bindHoverModelAsContentViewerAdapter, bindHoverOnHoverHandlerAsAbstractHandlePartAdapter, bindHoverOnHoverHandlerAsIRootPartAdapter, bindIContentPartFactoryAsContentViewerAdapter, bindIDomain, bindIDomainAdapters, bindIHandlerResolver, bindIHandlerResolverAsIDomainAdapter, bindIOperationHistory, bindIRootPart, bindIUndoContext, bindIViewer, bindMarqueeOnDragHandlerAsIRootPartAdapter, bindPanningSupportAsContentViewerAdapter, bindPanOnTypeHandlerAsIRootPartAdapter, bindPanOrZoomOnScrollHandlerAsIRootPartAdapter, bindPinchSpreadGesture, bindPinchSpreadGestureAsIDomainAdapter, bindRevealPrimarySelectionBehaviorAsIRootPartAdapter, bindRotateGesture, bindRotateGestureAsDomainAdapter, bindScrollGesture, bindScrollGestureAsDomainAdapter, bindSelectionBehaviorAsIRootPartAdapter, bindSelectionModelAsContentViewerAdapter, bindSnappingBehaviorAsIRootPartAdapter, bindSnappingFeedbackPartFactoryAsContentViewerAdapter, bindSnappingModelAsContentViewerAdapter, bindSnapToSupportAsContentViewerAdapter, bindTransformProviderAsAbstractContentPartAdapter, bindTypeGesture, bindTypeGestureAsDomainAdapter, bindZoomOnPinchSpreadHandlerAsIRootPartAdapter, enableAdapterMapInjection
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
bindAbstractContentPartAdapters
protected void bindAbstractContentPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindAbstractContentPartAdapters
in classMvcFxModule
-
bindChangeViewportPolicyAsIRootPartAdapter
protected void bindChangeViewportPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindChangeViewportPolicyAsIRootPartAdapter
in classMvcFxModule
-
bindEdgeLabelPartAdapters
protected void bindEdgeLabelPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forEdgeLabelPart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingEdgeLabelPart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindEdgePartAdapters
protected void bindEdgePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forEdgePart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingEdgePart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindFXCircleSegmentHandlePartAdapters
protected void bindFXCircleSegmentHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Bind bend-on-drag policy toCircleSegmentHandlePart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingCircleSegmentHandlePart
as a key.
-
bindFXSquareSegmentHandlePartAdapters
protected void bindFXSquareSegmentHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Bind resize and rotate behavior toSquareSegmentHandlePart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingSquareSegmentHandlePart
as a key.
-
bindGraphPartAdapters
protected void bindGraphPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forGraphPart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingGraphPart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindHidingHoverHandlePartAdapters
protected void bindHidingHoverHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forHideHoverHandlePart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingHideHoverHandlePart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindHoverHandlePartFactoryAsContentViewerAdapter
protected void bindHoverHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindHoverHandlePartFactoryAsContentViewerAdapter
in classMvcFxModule
-
bindIContentPartFactory
protected void bindIContentPartFactory()
BindsIContentPartFactory
toZestFxContentPartFactory
.
-
bindIRootPartAdaptersForContentViewer
protected void bindIRootPartAdaptersForContentViewer(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindIRootPartAdaptersForContentViewer
in classMvcFxModule
-
bindIViewerAdaptersForContentViewer
protected void bindIViewerAdaptersForContentViewer(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindIViewerAdaptersForContentViewer
in classMvcFxModule
-
bindNavigationModelAsContentViewerAdapter
protected void bindNavigationModelAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding forNavigationModel
to the given adapter map binder that will insert the bindings intoIViewer
s.- Parameters:
adapterMapBinder
- The adapter map binder to which the binding is added.
-
bindNodeLabelPartAdapters
protected void bindNodeLabelPartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forNodeLabelPart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingNodeLabelPart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindNodePartAdapters
protected void bindNodePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forNodePart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingNodePart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindRootPartAsContentViewerAdapter
protected void bindRootPartAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindRootPartAsContentViewerAdapter
in classMvcFxModule
-
bindSelectionFeedbackPartFactoryAsContentViewerAdapter
protected void bindSelectionFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindSelectionFeedbackPartFactoryAsContentViewerAdapter
in classMvcFxModule
-
bindSelectionHandlePartFactoryAsContentViewerAdapter
protected void bindSelectionHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindSelectionHandlePartFactoryAsContentViewerAdapter
in classMvcFxModule
-
bindShowHiddenNeighborsHoverHandlePartAdapters
protected void bindShowHiddenNeighborsHoverHandlePartAdapters(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default) adapter map bindings forShowHiddenNeighborsHoverHandlePart
and all sub-classes. May be overwritten by sub-classes to change the default bindings.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingShowHiddenNeighborsHoverHandlePart
as a key.- See Also:
AdapterMaps.getAdapterMapBinder(Binder, Class)
-
bindShowHiddenNeighborsOfFirstAnchorageOnClickHandlerAsShowHiddenNeighborsHoverHandlePartAdapter
protected void bindShowHiddenNeighborsOfFirstAnchorageOnClickHandlerAsShowHiddenNeighborsHoverHandlePartAdapter(MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding forShowHiddenNeighborsOfFirstAnchorageOnClickHandler
to the given adapter map binder that will insert the bindings intoShowHiddenNeighborsHoverHandlePart
s.- Parameters:
adapterMapBinder
- The adapter map binder to which the binding is added.
-
configure
protected void configure()
- Overrides:
configure
in classMvcFxModule
-
-