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 Summary
Nested ClassesModifier and TypeClassDescriptionprotected classExtended accessibility support for editpart.Nested classes/interfaces inherited from class org.eclipse.draw2d.SWTEventDispatcher
SWTEventDispatcher.FigureAccessibilityDispatcherNested classes/interfaces inherited from class org.eclipse.draw2d.EventDispatcher
EventDispatcher.AccessibilityDispatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EditDomainThe edit domainprotected EditPartViewerThe viewer on which this dispatcher is created.Fields inherited from class org.eclipse.draw2d.SWTEventDispatcher
ANY_BUTTON, control -
Constructor Summary
ConstructorsConstructorDescriptionConstructs the dispatcher for the given domain and viewer. -
Method Summary
Modifier 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.SWTEventDispatcher
getCurrentEvent, getCursorTarget, getFocusOwner, getFocusTraverseManager, getMouseTarget, getRoot, getToolTipHelper, isCaptured, releaseCapture, requestFocus, requestRemoveFocus, setControl, setEnableKeyTraversal, setFigureUnderCursor, setFocus, setHoverSource, setMouseTarget, setRoot, updateCursor, updateFigureUnderCursor, updateHoverSource
-
Field Details
-
domain
The edit domain -
viewer
The viewer on which this dispatcher is created.
-
-
Constructor Details
-
DomainEventDispatcher
Constructs the dispatcher for the given domain and viewer.- Parameters:
d- the domainv- the viewer
-
-
Method Details
-
dispatchFocusGained
- Overrides:
dispatchFocusGainedin classSWTEventDispatcher- See Also:
-
dispatchFocusLost
- Overrides:
dispatchFocusLostin classSWTEventDispatcher- See Also:
-
dispatchKeyPressed
- Overrides:
dispatchKeyPressedin classSWTEventDispatcher- See Also:
-
dispatchKeyTraversed
- Overrides:
dispatchKeyTraversedin classSWTEventDispatcher- See Also:
-
dispatchKeyReleased
- Overrides:
dispatchKeyReleasedin classSWTEventDispatcher- See Also:
-
dispatchMouseDoubleClicked
- Overrides:
dispatchMouseDoubleClickedin classSWTEventDispatcher- See Also:
-
dispatchMouseEntered
- Overrides:
dispatchMouseEnteredin classSWTEventDispatcher- See Also:
-
dispatchMouseExited
- Overrides:
dispatchMouseExitedin classSWTEventDispatcher- See Also:
-
dispatchMouseHover
- Overrides:
dispatchMouseHoverin classSWTEventDispatcher- See Also:
-
dispatchMousePressed
- Overrides:
dispatchMousePressedin classSWTEventDispatcher- See Also:
-
dispatchMouseMoved
- Overrides:
dispatchMouseMovedin classSWTEventDispatcher- See Also:
-
dispatchMouseReleased
- Overrides:
dispatchMouseReleasedin classSWTEventDispatcher- See Also:
-
dispatchNativeDragFinished
Dispatches a drag finished event.- Parameters:
event- the eventviewer- the viewer on which the event occured.
-
dispatchNativeDragStarted
Dispatches a drag started event.- Parameters:
event- the eventviewer- the viewer
-
dispatchMouseWheelScrolled
Forwards the event to the EditDomain.- Overrides:
dispatchMouseWheelScrolledin classSWTEventDispatcher- See Also:
-
getAccessibilityDispatcher
Lazily creates and returns the accessibility dispatcher.- Overrides:
getAccessibilityDispatcherin classSWTEventDispatcher- See Also:
-
getViewer
Returns the viewer on which this dispatcher was created- Returns:
- the viewer for this dispatcher
-
setCapture
- Overrides:
setCapturein classSWTEventDispatcher- See Also:
-
setCursor
- Overrides:
setCursorin classSWTEventDispatcher- See Also:
-
setRouteEventsToEditor
public 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
-
setOverrideCursor
Sets the override cursor.- Parameters:
newCursor- the cursor
-