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.String
PALETTE_VIEWER_ROLE
PaletteIViewer
role.
-
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 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 parentPane
.protected void
enableAdapterMapInjection()
org.eclipse.gef.mvc.fx.viewer.IViewer
getContentViewer()
Obtains the contentIViewer
.org.eclipse.gef.mvc.fx.viewer.IViewer
getPaletteViewer()
Obtains the paletteIViewer
.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 rootModel
.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
-
-
-
-
Field Detail
-
PALETTE_VIEWER_ROLE
public static final java.lang.String PALETTE_VIEWER_ROLE
PaletteIViewer
role.- 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:
bindAbstractContentPartAdapters
in 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:
bindFocusFeedbackPartFactoryAsContentViewerAdapter
in 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:
bindSelectionFeedbackPartFactoryAsContentViewerAdapter
in 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:
bindHoverFeedbackPartFactoryAsContentViewerAdapter
in 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:
bindHoverHandlePartFactoryAsContentViewerAdapter
in 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:
bindIDomainAdapters
in 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:
bindIRootPartAdaptersForContentViewer
in 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:
bindSelectionHandlePartFactoryAsContentViewerAdapter
in 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:
configure
in classorg.eclipse.gef.mvc.fx.MvcFxModule
-
enableAdapterMapInjection
protected void enableAdapterMapInjection()
- Overrides:
enableAdapterMapInjection
in classorg.eclipse.gef.mvc.fx.MvcFxModule
-
-