Package org.eclipse.gef.mvc.fx
Class MvcFxModule
java.lang.Object
com.google.inject.AbstractModule
org.eclipse.gef.mvc.fx.MvcFxModule
- All Implemented Interfaces:
Module
The Guice module which contains all (default) bindings related to the MVC.FX
bundle. It extends the MVC Guice module of the MVC bundle, which provides
JavaFX-unrelated (default) bindings.
In an Eclipse UI-integration scenario this module is intended to be overwritten by the MVC.FX.UI Guice module, which is provided by the MVC.FX.UI bundle.
Generally, we recommended that all clients should create an own non-UI module, which extends this module, as well as an own UI module, which extends the MVC.FX.UI module, being used to override the non-UI module in an Eclipse-UI integration scenario, as follows:
MVC <--extends-- MVC.FX <--extends-- Client-Non-UI-Module ^ ^ ^ | | | overrides overrides overrides | | | | | | MVC.UI <--extends-- MVC.FX.UI <--extends-- Client-UI-Module
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindAbstractContentPartAdapters
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forAbstractContentPart
and all sub-classes.protected void
bindAbstractFeedbackPartAdapters
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forAbstractFeedbackPart
and all sub-classes.protected void
bindAbstractHandlePartAdapters
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forAbstractHandlePart
and all sub-classes.protected void
bindAbstractVisualPartAdapters
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map binding forAbstractVisualPart
and all sub-classes.protected void
bindChangeViewportPolicyAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forViewportPolicy
to the adapter map binder forIRootPart
.protected void
BindsClickDragGesture
to theIDomain
adaptable scope.protected void
bindClickDragGestureAsDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forClickDragGesture
to the adapter map binder forIDomain
.protected void
bindConnectedSupportAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindContentBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forContentBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.protected void
bindContentIViewerAsIDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindContentPartPoolAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindContentPolicyAsAbstractContentPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forContentPolicy
, parameterized byNode
, to the adapter map binder forAbstractContentPart
.protected void
bindCreationPolicyAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forCreationPolicy
to the adapter map binder forIRootPart
.protected void
bindCursorSupportAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindDeletionPolicyAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forDeletionPolicy
to the adapter map binder forIRootPart
.protected void
bindFocusAndSelectOnClickHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forFocusAndSelectOnClickHandler
to the adapter map binder forIRootPart
.protected void
bindFocusBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding for theFocusBehavior
to the given adapter map binder.protected void
bindFocusFeedbackPartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate focus feedback.protected void
bindFocusModelAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindFocusTraversalPolicyAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forFocusTraversalPolicy
to the adapter map binder forIRootPart
.protected void
bindGridBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forGridBehavior
to the adapter map binder forIRootPart
.protected void
bindGridModelAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindHoverBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindHoverFeedbackPartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate hover feedback.protected void
BindsHoverGesture
to theIDomain
adaptable scope.protected void
bindHoverGestureAsDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverGesture
to the adapter map binder forIDomain
.protected void
bindHoverHandlePartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIHandlePartFactory
that is used to generate hover handles.protected void
bindHoverIntentBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverIntentBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.protected void
bindHoverModelAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindHoverOnHoverHandlerAsAbstractHandlePartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverOnHoverHandler
to the adapter map binder forAbstractHandlePart
.protected void
bindHoverOnHoverHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverOnHoverHandler
to the adapter map binder forIRootPart
.protected void
bindIContentPartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) BindsIContentPartFactory
as an adapter for the content viewer.protected void
BindsIDomain
to a respectiveHistoricizingDomain
implementation.protected void
bindIDomainAdapters
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forIDomain
and all sub-classes.protected void
protected void
bindIHandlerResolverAsIDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) BindsDefaultHandlerResolver
as a domain adapter.protected void
protected void
Binds the default implementation ofIRootPart
.protected void
bindIRootPartAdaptersForContentViewer
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings for "content"IRootPart
and all sub-classes.protected void
protected void
BindsIViewer
to a respectiveInfiniteCanvasViewer
implementation.protected void
bindIViewerAdaptersForContentViewer
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forIViewer
and all sub-classes.protected void
bindMarqueeOnDragHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forMarqueeOnDragHandler
to the adapter map binder forIRootPart
.protected void
bindPanningSupportAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindPanOnTypeHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPanOnStrokeHandler
to the adapter map binder forIRootPart
.protected void
bindPanOrZoomOnScrollHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPanOrZoomOnScrollHandler
to the adapter map binder forIRootPart
.protected void
BindsPinchSpreadGesture
to theIDomain
adaptable scope.protected void
bindPinchSpreadGestureAsIDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPinchSpreadGesture
to the adapter map binder forIDomain
.protected void
bindRevealPrimarySelectionBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forRevealPrimarySelectionBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.protected void
bindRootPartAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
BindsRotateGesture
to theIDomain
adaptable scope.protected void
bindRotateGestureAsDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forRotateGesture
to the adapter map binder forIDomain
.protected void
BindsScrollGesture
to theIDomain
adaptable scope.protected void
bindScrollGestureAsDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forScrollGesture
to the adapter map binder forIDomain
.protected void
bindSelectionBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forSelectionBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.protected void
bindSelectionFeedbackPartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate selection feedback.protected void
bindSelectionHandlePartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIHandlePartFactory
that is used to generate selection handles.protected void
bindSelectionModelAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindSnappingBehaviorAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding for theSnappingBehavior
to the given adapter map binder.protected void
bindSnappingFeedbackPartFactoryAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate snapping feedback.protected void
bindSnappingModelAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindSnapToSupportAsContentViewerAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) protected void
bindTransformProviderAsAbstractContentPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forTransformProvider
to the adapter map binder forAbstractContentPart
, using theITransformableContentPart.TRANSFORM_PROVIDER_KEY
.protected void
BindsTypeStrokeGesture
to theIDomain
adaptable scope.protected void
bindTypeGestureAsDomainAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forTypeStrokeGesture
to the adapter map binder forIDomain
.protected void
bindZoomOnPinchSpreadHandlerAsIRootPartAdapter
(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forZoomOnPinchSpreadHandler
to the adapter map binder forIRootPart
.protected void
protected void
Installs anAdapterInjectionSupport
module, which binds anAdaptableTypeListener
and ensures it gets properly injected.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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
MvcFxModule
public MvcFxModule()
-
-
Method Details
-
bindAbstractContentPartAdapters
Adds (default) adapter map bindings forAbstractContentPart
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)
usingAbstractContentPart
as a key.- See Also:
-
bindAbstractFeedbackPartAdapters
Adds (default) adapter map bindings forAbstractFeedbackPart
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)
usingAbstractFeedbackPart
as a key.- See Also:
-
bindAbstractHandlePartAdapters
Adds (default) adapter map bindings forAbstractHandlePart
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)
usingAbstractHandlePart
as a key.- See Also:
-
bindAbstractVisualPartAdapters
Adds (default) adapter map binding forAbstractVisualPart
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)
usingAbstractVisualPart
as a key.- See Also:
-
bindChangeViewportPolicyAsIRootPartAdapter
protected void bindChangeViewportPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forViewportPolicy
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindClickDragGesture
protected void bindClickDragGesture()BindsClickDragGesture
to theIDomain
adaptable scope. -
bindClickDragGestureAsDomainAdapter
protected void bindClickDragGestureAsDomainAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forClickDragGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindContentBehaviorAsIRootPartAdapter
protected void bindContentBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forContentBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindContentIViewerAsIDomainAdapter
- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindContentPartPoolAsContentViewerAdapter
protected void bindContentPartPoolAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to establish the binding.
-
bindContentPolicyAsAbstractContentPartAdapter
protected void bindContentPolicyAsAbstractContentPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forContentPolicy
, parameterized byNode
, to the adapter map binder forAbstractContentPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingAbstractContentPart
as a key.- See Also:
-
bindCreationPolicyAsIRootPartAdapter
protected void bindCreationPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forCreationPolicy
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindCursorSupportAsContentViewerAdapter
protected void bindCursorSupportAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to register adapter bindings.
-
bindDeletionPolicyAsIRootPartAdapter
protected void bindDeletionPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forDeletionPolicy
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindFocusAndSelectOnClickHandlerAsIRootPartAdapter
protected void bindFocusAndSelectOnClickHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forFocusAndSelectOnClickHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindFocusBehaviorAsIRootPartAdapter
protected void bindFocusBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding for theFocusBehavior
to the given adapter map binder.- Parameters:
adapterMapBinder
- An adapter map binder forIRootPart
.
-
bindFocusFeedbackPartFactoryAsContentViewerAdapter
protected void bindFocusFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate focus feedback.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindFocusModelAsContentViewerAdapter
protected void bindFocusModelAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIViewer
as a key.- See Also:
-
bindFocusTraversalPolicyAsIRootPartAdapter
protected void bindFocusTraversalPolicyAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forFocusTraversalPolicy
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindGridBehaviorAsIRootPartAdapter
Adds a binding forGridBehavior
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindGridModelAsContentViewerAdapter
protected void bindGridModelAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIViewer
as a key.- See Also:
-
bindHoverBehaviorAsIRootPartAdapter
protected void bindHoverBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindHoverFeedbackPartFactoryAsContentViewerAdapter
protected void bindHoverFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate hover feedback.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindHoverGesture
protected void bindHoverGesture()BindsHoverGesture
to theIDomain
adaptable scope. -
bindHoverGestureAsDomainAdapter
Adds a binding forHoverGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindHoverHandlePartFactoryAsContentViewerAdapter
protected void bindHoverHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIHandlePartFactory
that is used to generate hover handles.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindHoverIntentBehaviorAsIRootPartAdapter
protected void bindHoverIntentBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverIntentBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindHoverModelAsContentViewerAdapter
protected void bindHoverModelAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIViewer
as a key.- See Also:
-
bindHoverOnHoverHandlerAsAbstractHandlePartAdapter
protected void bindHoverOnHoverHandlerAsAbstractHandlePartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverOnHoverHandler
to the adapter map binder forAbstractHandlePart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingAbstractHandlePart
as a key.- See Also:
-
bindHoverOnHoverHandlerAsIRootPartAdapter
protected void bindHoverOnHoverHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forHoverOnHoverHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindIContentPartFactoryAsContentViewerAdapter
protected void bindIContentPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) BindsIContentPartFactory
as an adapter for the content viewer.- Parameters:
adapterMapBinder
- TheMapBinder
for the content viewer.
-
bindIDomain
protected void bindIDomain()BindsIDomain
to a respectiveHistoricizingDomain
implementation. -
bindIDomainAdapters
Adds (default) adapter map bindings forIDomain
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)
usingIDomain
as a key.- See Also:
-
bindIHandlerResolver
protected void bindIHandlerResolver() -
bindIHandlerResolverAsIDomainAdapter
protected void bindIHandlerResolverAsIDomainAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) BindsDefaultHandlerResolver
as a domain adapter.- Parameters:
adapterMapBinder
- TheMapBinder
that is used to add the binding.
-
bindIOperationHistory
protected void bindIOperationHistory() -
bindIRootPart
protected void bindIRootPart()Binds the default implementation ofIRootPart
. -
bindIRootPartAdaptersForContentViewer
protected void bindIRootPartAdaptersForContentViewer(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings for "content"IRootPart
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)
usingIRootPart
as a key.- See Also:
-
bindIUndoContext
protected void bindIUndoContext() -
bindIViewer
protected void bindIViewer()BindsIViewer
to a respectiveInfiniteCanvasViewer
implementation. -
bindIViewerAdaptersForContentViewer
protected void bindIViewerAdaptersForContentViewer(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds (default) adapter map bindings forIViewer
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)
usingIViewer
as a key.- See Also:
-
bindMarqueeOnDragHandlerAsIRootPartAdapter
protected void bindMarqueeOnDragHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forMarqueeOnDragHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindConnectedSupportAsContentViewerAdapter
protected void bindConnectedSupportAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to register adapter bindings.
-
bindPanningSupportAsContentViewerAdapter
protected void bindPanningSupportAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to register adapter bindings.
-
bindPanOnTypeHandlerAsIRootPartAdapter
protected void bindPanOnTypeHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPanOnStrokeHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindPanOrZoomOnScrollHandlerAsIRootPartAdapter
protected void bindPanOrZoomOnScrollHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPanOrZoomOnScrollHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindPinchSpreadGesture
protected void bindPinchSpreadGesture()BindsPinchSpreadGesture
to theIDomain
adaptable scope. -
bindPinchSpreadGestureAsIDomainAdapter
protected void bindPinchSpreadGestureAsIDomainAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forPinchSpreadGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindRevealPrimarySelectionBehaviorAsIRootPartAdapter
protected void bindRevealPrimarySelectionBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forRevealPrimarySelectionBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindRootPartAsContentViewerAdapter
- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIViewer
as a key.- See Also:
-
bindRotateGesture
protected void bindRotateGesture()BindsRotateGesture
to theIDomain
adaptable scope. -
bindRotateGestureAsDomainAdapter
Adds a binding forRotateGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindScrollGesture
protected void bindScrollGesture()BindsScrollGesture
to theIDomain
adaptable scope. -
bindScrollGestureAsDomainAdapter
Adds a binding forScrollGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindSelectionBehaviorAsIRootPartAdapter
protected void bindSelectionBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forSelectionBehavior
, parameterized byNode
, to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
bindSelectionFeedbackPartFactoryAsContentViewerAdapter
protected void bindSelectionFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate selection feedback.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindSelectionHandlePartFactoryAsContentViewerAdapter
protected void bindSelectionHandlePartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIHandlePartFactory
that is used to generate selection handles.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindSelectionModelAsContentViewerAdapter
protected void bindSelectionModelAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIViewer
as a key.- See Also:
-
bindSnappingBehaviorAsIRootPartAdapter
protected void bindSnappingBehaviorAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding for theSnappingBehavior
to the given adapter map binder.- Parameters:
adapterMapBinder
- An adapter map binder forIRootPart
.
-
bindSnappingFeedbackPartFactoryAsContentViewerAdapter
protected void bindSnappingFeedbackPartFactoryAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Binds theIFeedbackPartFactory
that is used to generate snapping feedback.- Parameters:
adapterMapBinder
- TheMapBinder
for content viewer adapters.
-
bindSnappingModelAsContentViewerAdapter
protected void bindSnappingModelAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to register adapter bindings.
-
bindSnapToSupportAsContentViewerAdapter
protected void bindSnapToSupportAsContentViewerAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) - Parameters:
adapterMapBinder
- TheMapBinder
that is used to register adapter bindings.
-
bindTransformProviderAsAbstractContentPartAdapter
protected void bindTransformProviderAsAbstractContentPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forTransformProvider
to the adapter map binder forAbstractContentPart
, using theITransformableContentPart.TRANSFORM_PROVIDER_KEY
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingAbstractContentPart
as a key.- See Also:
-
bindTypeGesture
protected void bindTypeGesture()BindsTypeStrokeGesture
to theIDomain
adaptable scope. -
bindTypeGestureAsDomainAdapter
Adds a binding forTypeStrokeGesture
to the adapter map binder forIDomain
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIDomain
as a key.- See Also:
-
bindZoomOnPinchSpreadHandlerAsIRootPartAdapter
protected void bindZoomOnPinchSpreadHandlerAsIRootPartAdapter(MapBinder<AdapterKey<?>, Object> adapterMapBinder) Adds a binding forZoomOnPinchSpreadHandler
to the adapter map binder forIRootPart
.- Parameters:
adapterMapBinder
- TheMapBinder
to be used for the binding registration. In this case, will be obtained fromAdapterMaps.getAdapterMapBinder(Binder, Class)
usingIRootPart
as a key.- See Also:
-
configure
protected void configure()- Overrides:
configure
in classAbstractModule
-
enableAdapterMapInjection
protected void enableAdapterMapInjection()Installs anAdapterInjectionSupport
module, which binds anAdaptableTypeListener
and ensures it gets properly injected.
-