Class UiContextViewer

java.lang.Object
de.cau.cs.kieler.klighd.viewers.ContextViewer
de.cau.cs.kieler.klighd.ui.viewers.UiContextViewer
All Implemented Interfaces:
IDiagramOutlinePage.Provider, ILayoutRecorder, IViewer, org.eclipse.jface.viewers.ISelectionProvider

public class UiContextViewer extends ContextViewer implements org.eclipse.jface.viewers.ISelectionProvider, IDiagramOutlinePage.Provider
A specialized ContextViewer being in charge of providing UI contributions like context menu and propagation of the selection into the platform.
It is used by the DiagramEditorPart and DiagramViewPart.
Author:
chsch
  • Field Details

    • KLIGHD_UI_CONTEXT_ID

      public static final String KLIGHD_UI_CONTEXT_ID
      Constant string defining the KLighD-specific Eclipse UI key binding context id.
      See Also:
  • Constructor Details

    • UiContextViewer

      public UiContextViewer(org.eclipse.swt.widgets.Composite parent, IDiagramWorkbenchPart part)
      Constructor.
      Parameters:
      parent - the parent Composite the diagram canvas is to be attached to
      part - the IDiagramWorkbenchPart this ContextViewer is attached to (is only required for setting the selection provider and ui context in time!)
  • Method Details