Package org.eclipse.gef.ui.parts
Class DomainEventDispatcher
java.lang.Object
org.eclipse.draw2d.EventDispatcher
org.eclipse.draw2d.SWTEventDispatcher
org.eclipse.gef.ui.parts.DomainEventDispatcher
A special event dispatcher that will route events to the 
EditDomain
 when appropriate.
 IMPORTANT: This class is not intended to be used or subclassed by clients.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classExtended accessibility support for editpart.Nested classes/interfaces inherited from class org.eclipse.draw2d.SWTEventDispatcherSWTEventDispatcher.FigureAccessibilityDispatcherNested classes/interfaces inherited from class org.eclipse.draw2d.EventDispatcherEventDispatcher.AccessibilityDispatcher
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected EditDomainThe edit domainprotected EditPartViewerThe viewer on which this dispatcher is created.Fields inherited from class org.eclipse.draw2d.SWTEventDispatcherANY_BUTTON, control
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs the dispatcher for the given domain and viewer.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispatchFocusGained(FocusEvent event) voiddispatchFocusLost(FocusEvent event) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidForwards the event to the EditDomain.voiddispatchNativeDragFinished(DragSourceEvent event, AbstractEditPartViewer viewer) Dispatches a drag finished event.voiddispatchNativeDragStarted(DragSourceEvent event, AbstractEditPartViewer viewer) Dispatches a drag started event.protected EventDispatcher.AccessibilityDispatcherLazily creates and returns the accessibility dispatcher.protected final EditPartViewerReturns the viewer on which this dispatcher was createdprotected voidsetCapture(IFigure figure) protected voidvoidsetOverrideCursor(Cursor newCursor) Sets the override cursor.voidsetRouteEventsToEditor(boolean value) Sets whether events should go directly to the edit domain.Methods inherited from class org.eclipse.draw2d.SWTEventDispatchergetCurrentEvent, getCursorTarget, getFocusOwner, getFocusTraverseManager, getMouseTarget, getRoot, getToolTipHelper, isCaptured, releaseCapture, requestFocus, requestRemoveFocus, setControl, setEnableKeyTraversal, setFigureUnderCursor, setFocus, setHoverSource, setMouseTarget, setRoot, updateCursor, updateFigureUnderCursor, updateHoverSource
- 
Field Details- 
domainThe edit domain
- 
viewerThe viewer on which this dispatcher is created.
 
- 
- 
Constructor Details- 
DomainEventDispatcherConstructs the dispatcher for the given domain and viewer.- Parameters:
- d- the domain
- v- the viewer
 
 
- 
- 
Method Details- 
dispatchFocusGained- Overrides:
- dispatchFocusGainedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchFocusLost- Overrides:
- dispatchFocusLostin class- SWTEventDispatcher
- See Also:
 
- 
dispatchKeyPressed- Overrides:
- dispatchKeyPressedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchKeyTraversed- Overrides:
- dispatchKeyTraversedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchKeyReleased- Overrides:
- dispatchKeyReleasedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseDoubleClicked- Overrides:
- dispatchMouseDoubleClickedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseEntered- Overrides:
- dispatchMouseEnteredin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseExited- Overrides:
- dispatchMouseExitedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseHover- Overrides:
- dispatchMouseHoverin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMousePressed- Overrides:
- dispatchMousePressedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseMoved- Overrides:
- dispatchMouseMovedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchMouseReleased- Overrides:
- dispatchMouseReleasedin class- SWTEventDispatcher
- See Also:
 
- 
dispatchNativeDragFinishedDispatches a drag finished event.- Parameters:
- event- the event
- viewer- the viewer on which the event occured.
 
- 
dispatchNativeDragStartedDispatches a drag started event.- Parameters:
- event- the event
- viewer- the viewer
 
- 
dispatchMouseWheelScrolledForwards the event to the EditDomain.- Overrides:
- dispatchMouseWheelScrolledin class- SWTEventDispatcher
- See Also:
 
- 
getAccessibilityDispatcherLazily creates and returns the accessibility dispatcher.- Overrides:
- getAccessibilityDispatcherin class- SWTEventDispatcher
- See Also:
 
- 
getViewerReturns the viewer on which this dispatcher was created- Returns:
- the viewer for this dispatcher
 
- 
setCapture- Overrides:
- setCapturein class- SWTEventDispatcher
- See Also:
 
- 
setCursor- Overrides:
- setCursorin class- SWTEventDispatcher
- See Also:
 
- 
setRouteEventsToEditorpublic void setRouteEventsToEditor(boolean value) Sets whether events should go directly to the edit domain.- Parameters:
- value-- trueif all events should go directly to the edit domain
 
- 
setOverrideCursorSets the override cursor.- Parameters:
- newCursor- the cursor
 
 
-