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
public class DomainEventDispatcher
extends org.eclipse.draw2d.SWTEventDispatcher
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 class
Extended accessibility support for editpart.Nested classes/interfaces inherited from class org.eclipse.draw2d.SWTEventDispatcher
org.eclipse.draw2d.SWTEventDispatcher.FigureAccessibilityDispatcher
Nested classes/interfaces inherited from class org.eclipse.draw2d.EventDispatcher
org.eclipse.draw2d.EventDispatcher.AccessibilityDispatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EditDomain
The edit domainprotected EditPartViewer
The 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 TypeMethodDescriptionvoid
dispatchFocusGained
(FocusEvent event) void
dispatchFocusLost
(FocusEvent event) void
void
void
void
void
void
void
void
void
void
void
Forwards the event to the EditDomain.void
dispatchNativeDragFinished
(DragSourceEvent event, AbstractEditPartViewer viewer) Dispatches a drag finished event.void
dispatchNativeDragStarted
(DragSourceEvent event, AbstractEditPartViewer viewer) Dispatches a drag started event.protected org.eclipse.draw2d.EventDispatcher.AccessibilityDispatcher
Lazily creates and returns the accessibility dispatcher.protected final EditPartViewer
Returns the viewer on which this dispatcher was createdprotected void
setCapture
(org.eclipse.draw2d.IFigure figure) protected void
void
setOverrideCursor
(Cursor newCursor) Sets the override cursor.void
setRouteEventsToEditor
(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:
dispatchFocusGained
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchFocusGained(org.eclipse.swt.events.FocusEvent)
-
dispatchFocusLost
- Overrides:
dispatchFocusLost
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchFocusLost(org.eclipse.swt.events.FocusEvent)
-
dispatchKeyPressed
- Overrides:
dispatchKeyPressed
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchKeyPressed(org.eclipse.swt.events.KeyEvent)
-
dispatchKeyTraversed
- Overrides:
dispatchKeyTraversed
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
SWTEventDispatcher.dispatchKeyTraversed(org.eclipse.swt.events.TraverseEvent)
-
dispatchKeyReleased
- Overrides:
dispatchKeyReleased
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchKeyReleased(org.eclipse.swt.events.KeyEvent)
-
dispatchMouseDoubleClicked
- Overrides:
dispatchMouseDoubleClicked
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseDoubleClicked(org.eclipse.swt.events.MouseEvent)
-
dispatchMouseEntered
- Overrides:
dispatchMouseEntered
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseEntered(org.eclipse.swt.events.MouseEvent)
-
dispatchMouseExited
- Overrides:
dispatchMouseExited
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseExited(org.eclipse.swt.events.MouseEvent)
-
dispatchMouseHover
- Overrides:
dispatchMouseHover
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseHover(org.eclipse.swt.events.MouseEvent)
-
dispatchMousePressed
- Overrides:
dispatchMousePressed
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMousePressed(org.eclipse.swt.events.MouseEvent)
-
dispatchMouseMoved
- Overrides:
dispatchMouseMoved
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseMoved(org.eclipse.swt.events.MouseEvent)
-
dispatchMouseReleased
- Overrides:
dispatchMouseReleased
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseReleased(org.eclipse.swt.events.MouseEvent)
-
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:
dispatchMouseWheelScrolled
in classorg.eclipse.draw2d.EventDispatcher
- See Also:
-
EventDispatcher.dispatchMouseWheelScrolled(org.eclipse.swt.widgets.Event)
-
getAccessibilityDispatcher
protected org.eclipse.draw2d.EventDispatcher.AccessibilityDispatcher getAccessibilityDispatcher()Lazily creates and returns the accessibility dispatcher.- Overrides:
getAccessibilityDispatcher
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.getAccessibilityDispatcher()
-
getViewer
Returns the viewer on which this dispatcher was created- Returns:
- the viewer for this dispatcher
-
setCapture
protected void setCapture(org.eclipse.draw2d.IFigure figure) - Overrides:
setCapture
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
EventDispatcher.setCapture(IFigure)
-
setCursor
- Overrides:
setCursor
in classorg.eclipse.draw2d.SWTEventDispatcher
- See Also:
-
SWTEventDispatcher.setCursor(Cursor)
-
setRouteEventsToEditor
public void setRouteEventsToEditor(boolean value) Sets whether events should go directly to the edit domain.- Parameters:
value
-true
if all events should go directly to the edit domain
-
setOverrideCursor
Sets the override cursor.- Parameters:
newCursor
- the cursor
-