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 PointgetNavigationPoint(IFigure figure) Figures' navigation points are used to determine their direction compared to one another, and the distance between them.protected ListReturns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart.booleankeyPressed(KeyEvent event) Extends keyPressed to look for palette navigation keys.protected voidnavigateTo(EditPart part, KeyEvent event) Navigates to the given EditPartMethods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
getFocusEditPart, getViewer, isViewerMirrored, processSelectMethods 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:
keyPressedin classGraphicalViewerKeyHandler- Parameters:
event- the KeyEvent- Returns:
trueif KeyEvent was handled in some way- See Also: