Package net.officefloor.gef.editor
Class AdaptedEditorModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.eclipse.gef.mvc.fx.MvcFxModule
-
- net.officefloor.gef.editor.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.StringPALETTE_VIEWER_ROLEPaletteIViewerrole.
-
Constructor Summary
Constructors Constructor Description AdaptedEditorModule()
-
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 theIDomain.protected voidbindAbstractContentPartAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindAdaptedConnectionInContentViewerContext(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindAdaptedConnectorInContentViewerContext(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindAdaptedParentInContentViewerContext(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindAdaptedParentPartInPaletteViewerContext(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindCircleSegmentHandlePartAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindContentPartPoolAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindContentRestrictedChangeViewportPolicyAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindFocusFeedbackFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindFocusFeedbackPartFactoryAsContentViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindFocusModelAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindFXPaletteViewerAsFXDomainAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindHoverFeedbackFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindHoverFeedbackPartFactoryAsContentViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindHoverHandleFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindHoverHandlePartFactoryAsContentViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindHoverModelAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindIContentPartFactory()protected voidbindIContentPartFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindIDomainAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindIRootPartAdaptersForContentViewer(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindPaletteFocusBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindPaletteRootPartAdaptersInPaletteViewerContext(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindPaletteRootPartAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindPaletteViewerAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindPaletteViewerAsDomainAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectAllOnTypeHandlerAsContentViewerRootPartAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectionFeedbackFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectionFeedbackPartFactoryAsContentViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectionHandleFactoryAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectionHandlePartFactoryAsContentViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSelectionModelAsPaletteViewerAdapter(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidbindSquareSegmentHandlePartAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)protected voidconfigure()voidconfigure(AdaptedBuilder adaptedBuilder)Configures.javafx.scene.layout.PanecreateParent(AdaptedBuilder adaptedBuilder)Creates the parentPane.protected voidenableAdapterMapInjection()org.eclipse.gef.mvc.fx.viewer.IViewergetContentViewer()Obtains the contentIViewer.org.eclipse.gef.mvc.fx.viewer.IViewergetPaletteViewer()Obtains the paletteIViewer.voidinitialise(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 rootModel.voidsetDragLatency(int dragLatency)Specifies the drag latency.voidsetSelectOnly(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
-
-
-
-
Field Detail
-
PALETTE_VIEWER_ROLE
public static final java.lang.String PALETTE_VIEWER_ROLE
PaletteIViewerrole.- See Also:
- Constant Field Values
-
-
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 parentPane.- Parameters:
adaptedBuilder-AdaptedBuilder.- Returns:
- Parent
Pane.
-
activateDomain
public <R extends Model> javafx.beans.property.Property<R> activateDomain(R rootModel)
Activates theIDomain.
-
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 contentIViewer.- Returns:
- Content
IViewer.
-
getPaletteViewer
public org.eclipse.gef.mvc.fx.viewer.IViewer getPaletteViewer()
Obtains the paletteIViewer.- Returns:
- Palette
IViewer.
-
loadRootModel
public <R extends Model> javafx.beans.property.Property<R> loadRootModel(R rootModel)
Loads the rootModel.
-
bindAbstractContentPartAdapters
protected void bindAbstractContentPartAdapters(com.google.inject.multibindings.MapBinder<org.eclipse.gef.common.adapt.AdapterKey<?>,java.lang.Object> adapterMapBinder)
- Overrides:
bindAbstractContentPartAdaptersin classorg.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:
bindFocusFeedbackPartFactoryAsContentViewerAdapterin classorg.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:
bindSelectionFeedbackPartFactoryAsContentViewerAdapterin classorg.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:
bindHoverFeedbackPartFactoryAsContentViewerAdapterin classorg.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:
bindHoverHandlePartFactoryAsContentViewerAdapterin classorg.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:
bindIDomainAdaptersin classorg.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:
bindIRootPartAdaptersForContentViewerin classorg.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:
bindSelectionHandlePartFactoryAsContentViewerAdapterin classorg.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:
configurein classorg.eclipse.gef.mvc.fx.MvcFxModule
-
enableAdapterMapInjection
protected void enableAdapterMapInjection()
- Overrides:
enableAdapterMapInjectionin classorg.eclipse.gef.mvc.fx.MvcFxModule
-
-