Class AdaptedEditorModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class AdaptedEditorModule
    extends org.eclipse.gef.mvc.fx.MvcFxModule
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PALETTE_VIEWER_ROLE
      Palette IViewer role.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R extends Model>
      javafx.beans.property.Property<R>
      activateDomain​(R rootModel)
      Activates the IDomain.
      protected void bindAbstractContentPartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindAdaptedConnectionInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindAdaptedConnectorInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindAdaptedParentInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindAdaptedParentPartInPaletteViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindCircleSegmentHandlePartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindContentPartPoolAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindContentRestrictedChangeViewportPolicyAsFXRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindFocusFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindFocusFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindFocusModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindFXPaletteViewerAsFXDomainAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindHoverFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindHoverFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindHoverHandleFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindHoverHandlePartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindHoverModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindIContentPartFactory()  
      protected void bindIContentPartFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindIDomainAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindIRootPartAdaptersForContentViewer​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindPaletteFocusBehaviorAsFXRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindPaletteRootPartAdaptersInPaletteViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindPaletteRootPartAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindPaletteViewerAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindPaletteViewerAsDomainAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectAllOnTypeHandlerAsContentViewerRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectionFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectionFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectionHandleFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectionHandlePartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSelectionModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void bindSquareSegmentHandlePartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)  
      protected void configure()  
      void configure​(AdaptedBuilder adaptedBuilder)
      Configures.
      javafx.scene.layout.Pane createParent​(AdaptedBuilder adaptedBuilder)
      Creates the parent Pane.
      protected void enableAdapterMapInjection()  
      org.eclipse.gef.mvc.fx.viewer.IViewer getContentViewer()
      Obtains the content IViewer.
      org.eclipse.gef.mvc.fx.viewer.IViewer getPaletteViewer()
      Obtains the palette IViewer.
      void initialise​(org.eclipse.gef.mvc.fx.domain.IDomain domain, com.google.inject.Injector injector)
      Initialises.
      <R extends Model>
      javafx.beans.property.Property<R>
      loadRootModel​(R rootModel)
      Loads the root Model.
      void setDragLatency​(int dragLatency)
      Specifies the drag latency.
      void setSelectOnly​(SelectOnly selectOnly)
      Flags that the editor is select only.
      • Methods inherited from class org.eclipse.gef.mvc.fx.MvcFxModule

        bindAbstractFeedbackPartAdapters, bindAbstractHandlePartAdapters, bindAbstractVisualPartAdapters, bindChangeViewportPolicyAsIRootPartAdapter, bindClickDragGesture, bindClickDragGestureAsDomainAdapter, bindConnectedSupportAsContentViewerAdapter, bindContentBehaviorAsIRootPartAdapter, bindContentIViewerAsIDomainAdapter, bindContentPartPoolAsContentViewerAdapter, bindContentPolicyAsAbstractContentPartAdapter, bindCreationPolicyAsIRootPartAdapter, bindCursorSupportAsContentViewerAdapter, bindDeletionPolicyAsIRootPartAdapter, bindFocusAndSelectOnClickHandlerAsIRootPartAdapter, bindFocusBehaviorAsIRootPartAdapter, bindFocusModelAsContentViewerAdapter, bindFocusTraversalPolicyAsIRootPartAdapter, bindGridBehaviorAsIRootPartAdapter, bindGridModelAsContentViewerAdapter, bindHoverBehaviorAsIRootPartAdapter, bindHoverGesture, bindHoverGestureAsDomainAdapter, bindHoverIntentBehaviorAsIRootPartAdapter, bindHoverModelAsContentViewerAdapter, bindHoverOnHoverHandlerAsAbstractHandlePartAdapter, bindHoverOnHoverHandlerAsIRootPartAdapter, bindIContentPartFactoryAsContentViewerAdapter, bindIDomain, bindIHandlerResolver, bindIHandlerResolverAsIDomainAdapter, bindIOperationHistory, bindIRootPart, bindIUndoContext, bindIViewer, bindIViewerAdaptersForContentViewer, bindMarqueeOnDragHandlerAsIRootPartAdapter, bindPanningSupportAsContentViewerAdapter, bindPanOnTypeHandlerAsIRootPartAdapter, bindPanOrZoomOnScrollHandlerAsIRootPartAdapter, bindPinchSpreadGesture, bindPinchSpreadGestureAsIDomainAdapter, bindRevealPrimarySelectionBehaviorAsIRootPartAdapter, bindRootPartAsContentViewerAdapter, bindRotateGesture, bindRotateGestureAsDomainAdapter, bindScrollGesture, bindScrollGestureAsDomainAdapter, bindSelectionBehaviorAsIRootPartAdapter, bindSelectionModelAsContentViewerAdapter, bindSnappingBehaviorAsIRootPartAdapter, bindSnappingFeedbackPartFactoryAsContentViewerAdapter, bindSnappingModelAsContentViewerAdapter, bindSnapToSupportAsContentViewerAdapter, bindTransformProviderAsAbstractContentPartAdapter, bindTypeGesture, bindTypeGestureAsDomainAdapter, bindZoomOnPinchSpreadHandlerAsIRootPartAdapter
      • Methods inherited from class com.google.inject.AbstractModule

        addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PALETTE_VIEWER_ROLE

        public static final java.lang.String PALETTE_VIEWER_ROLE
        Palette IViewer role.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AdaptedEditorModule

        public AdaptedEditorModule()
    • Method Detail

      • setDragLatency

        public void setDragLatency​(int dragLatency)
        Specifies the drag latency.
        Parameters:
        dragLatency - Drag latency. Higher values provide better drag performance, while lower provides better responsiveness.
      • setSelectOnly

        public void setSelectOnly​(SelectOnly selectOnly)
        Flags that the editor is select only.
        Parameters:
        selectOnly - SelectOnly.
      • createParent

        public javafx.scene.layout.Pane createParent​(AdaptedBuilder adaptedBuilder)
        Creates the parent Pane.
        Parameters:
        adaptedBuilder - AdaptedBuilder.
        Returns:
        Parent Pane.
      • activateDomain

        public <R extends Model> javafx.beans.property.Property<R> activateDomain​(R rootModel)
        Activates the IDomain.
        Parameters:
        rootModel - Root Model.
        Returns:
        Property to change the root Model.
      • initialise

        public void initialise​(org.eclipse.gef.mvc.fx.domain.IDomain domain,
                               com.google.inject.Injector injector)

        Initialises.

        This may be called before JavaFx has been initialised.

        Parameters:
        domain - IDomain.
        injector - Injector.
      • configure

        public void configure​(AdaptedBuilder adaptedBuilder)

        Configures.

        This must be called after JavaFX has been initialised.

        Parameters:
        adaptedBuilder - AdaptedBuilder.
      • getContentViewer

        public org.eclipse.gef.mvc.fx.viewer.IViewer getContentViewer()
        Obtains the content IViewer.
        Returns:
        Content IViewer.
      • getPaletteViewer

        public org.eclipse.gef.mvc.fx.viewer.IViewer getPaletteViewer()
        Obtains the palette IViewer.
        Returns:
        Palette IViewer.
      • loadRootModel

        public <R extends Model> javafx.beans.property.Property<R> loadRootModel​(R rootModel)
        Loads the root Model.
        Parameters:
        rootModel - Root Model.
        Returns:
        Property to change the root Model.
      • bindAbstractContentPartAdapters

        protected void bindAbstractContentPartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindAbstractContentPartAdapters in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindFocusFeedbackPartFactoryAsContentViewerAdapter

        protected void bindFocusFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindFocusFeedbackPartFactoryAsContentViewerAdapter in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindSelectionFeedbackPartFactoryAsContentViewerAdapter

        protected void bindSelectionFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindSelectionFeedbackPartFactoryAsContentViewerAdapter in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindHoverFeedbackPartFactoryAsContentViewerAdapter

        protected void bindHoverFeedbackPartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindHoverFeedbackPartFactoryAsContentViewerAdapter in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindCircleSegmentHandlePartAdapters

        protected void bindCircleSegmentHandlePartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindSquareSegmentHandlePartAdapters

        protected void bindSquareSegmentHandlePartAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindContentPartPoolAsPaletteViewerAdapter

        protected void bindContentPartPoolAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindContentRestrictedChangeViewportPolicyAsFXRootPartAdapter

        protected void bindContentRestrictedChangeViewportPolicyAsFXRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindFocusFeedbackFactoryAsPaletteViewerAdapter

        protected void bindFocusFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindFocusModelAsPaletteViewerAdapter

        protected void bindFocusModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindFXPaletteViewerAsFXDomainAdapter

        protected void bindFXPaletteViewerAsFXDomainAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindAdaptedConnectionInContentViewerContext

        protected void bindAdaptedConnectionInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindAdaptedParentPartInPaletteViewerContext

        protected void bindAdaptedParentPartInPaletteViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindHoverFeedbackFactoryAsPaletteViewerAdapter

        protected void bindHoverFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindHoverHandleFactoryAsPaletteViewerAdapter

        protected void bindHoverHandleFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindHoverHandlePartFactoryAsContentViewerAdapter

        protected void bindHoverHandlePartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindHoverHandlePartFactoryAsContentViewerAdapter in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindHoverModelAsPaletteViewerAdapter

        protected void bindHoverModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindIContentPartFactory

        protected void bindIContentPartFactory()
      • bindIContentPartFactoryAsPaletteViewerAdapter

        protected void bindIContentPartFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindIDomainAdapters

        protected void bindIDomainAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindIDomainAdapters in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindIRootPartAdaptersForContentViewer

        protected void bindIRootPartAdaptersForContentViewer​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindIRootPartAdaptersForContentViewer in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindPaletteFocusBehaviorAsFXRootPartAdapter

        protected void bindPaletteFocusBehaviorAsFXRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindPaletteRootPartAdaptersInPaletteViewerContext

        protected void bindPaletteRootPartAdaptersInPaletteViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindPaletteRootPartAsPaletteViewerAdapter

        protected void bindPaletteRootPartAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindPaletteViewerAdapters

        protected void bindPaletteViewerAdapters​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindPaletteViewerAsDomainAdapter

        protected void bindPaletteViewerAsDomainAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindSelectAllOnTypeHandlerAsContentViewerRootPartAdapter

        protected void bindSelectAllOnTypeHandlerAsContentViewerRootPartAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindSelectionFeedbackFactoryAsPaletteViewerAdapter

        protected void bindSelectionFeedbackFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindSelectionHandleFactoryAsPaletteViewerAdapter

        protected void bindSelectionHandleFactoryAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindSelectionHandlePartFactoryAsContentViewerAdapter

        protected void bindSelectionHandlePartFactoryAsContentViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
        Overrides:
        bindSelectionHandlePartFactoryAsContentViewerAdapter in class org.eclipse.gef.mvc.fx.MvcFxModule
      • bindSelectionModelAsPaletteViewerAdapter

        protected void bindSelectionModelAsPaletteViewerAdapter​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindAdaptedParentInContentViewerContext

        protected void bindAdaptedParentInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • bindAdaptedConnectorInContentViewerContext

        protected void bindAdaptedConnectorInContentViewerContext​(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,​java.lang.Object> adapterMapBinder)
      • configure

        protected void configure()
        Overrides:
        configure in class org.eclipse.gef.mvc.fx.MvcFxModule
      • enableAdapterMapInjection

        protected void enableAdapterMapInjection()
        Overrides:
        enableAdapterMapInjection in class org.eclipse.gef.mvc.fx.MvcFxModule