Package org.eclipse.gef.ui.parts
Class PaletteViewerKeyHandler
java.lang.Object
org.eclipse.gef.KeyHandler
org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
org.eclipse.gef.ui.parts.PaletteViewerKeyHandler
KeyHandler for the
Palette
.
Handles selection traversal of Palette entries and collapse/expand of
categories.-
Constructor Summary
ConstructorsConstructorDescriptionPaletteViewerKeyHandler
(PaletteViewer viewer) Constructs a key handler for the specified palette viewer. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.geometry.Point
getNavigationPoint
(org.eclipse.draw2d.IFigure figure) Figures' navigation points are used to determine their direction compared to one another, and the distance between them.protected List
Returns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart.boolean
keyPressed
(KeyEvent event) Extends keyPressed to look for palette navigation keys.protected void
navigateTo
(EditPart part, KeyEvent event) Navigates to the given EditPartMethods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
getFocusEditPart, getViewer, isViewerMirrored, processSelect
Methods inherited from class org.eclipse.gef.KeyHandler
keyReleased, put, remove, setParent
-
Constructor Details
-
PaletteViewerKeyHandler
Constructs a key handler for the specified palette viewer.- Parameters:
viewer
- the palette viewer
-
-
Method Details
-
keyPressed
Extends keyPressed to look for palette navigation keys.- Overrides:
keyPressed
in classGraphicalViewerKeyHandler
- Parameters:
event
- the KeyEvent- Returns:
true
if KeyEvent was handled in some way- See Also: