Class PaletteViewerKeyHandler


  • public class PaletteViewerKeyHandler
    extends GraphicalViewerKeyHandler
    KeyHandler for the Palette. Handles selection traversal of Palette entries and collapse/expand of categories.
    • Constructor Detail

      • PaletteViewerKeyHandler

        public PaletteViewerKeyHandler​(PaletteViewer viewer)
        Constructs a key handler for the specified palette viewer.
        Parameters:
        viewer - the palette viewer
    • Method Detail

      • getNavigationPoint

        protected 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.
        Parameters:
        figure - the figure whose navigation point is to be returned
        Returns:
        the top-left of the given figure
      • getNavigationSiblings

        protected java.util.List getNavigationSiblings()
        Description copied from class: GraphicalViewerKeyHandler
        Returns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart. By default, these are the siblings of the focused part.

        This implementation returns a list that contains the EditPart that has focus.

        Overrides:
        getNavigationSiblings in class GraphicalViewerKeyHandler
        Returns:
        a list of EditParts that can be traversed to from the current focus part