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
It is used by the
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant string defining the KLighD-specific Eclipse UI key binding context id. -
Constructor Summary
ConstructorsConstructorDescriptionUiContextViewer(org.eclipse.swt.widgets.Composite parent, IDiagramWorkbenchPart part) Constructor. -
Method Summary
Methods inherited from class de.cau.cs.kieler.klighd.viewers.ContextViewer
addSelectionChangedListener, addViewChangeListener, addViewChangeListener, centerOn, centerOn, clip, clip, clip, clip, collapse, collapse, createSelection, expand, expand, getActiveViewer, getClip, getContextViewer, getControl, getCurrentViewContext, getDiagramOutlinePage, getDiagramSelection, getScale, getScale, getSelection, getViewContext, getVisibleDiagramElements, getVisibleDiagramNodes, getZoomLevel, hide, hide, isDisplayed, isDisplayed, isExpanded, isExpanded, isVisible, isVisible, panDiagramToTopLeftCorner, panToTopLeftCorner, panToTopLeftCorner, removeSelectionChangedListener, removeViewChangeListener, resetSelectionTo, resetSelectionTo, resetSelectionTo, resetSelectionToDiagramElements, resetSelectionToSemanticElements, reveal, reveal, scale, scale, setModel, setSelection, setViewer, show, show, startRecording, stopRecording, stopRecording, stopRecording, toggleExpansion, toggleExpansion, toggleSelectionOf, toggleSelectionOf, toggleSelectionOf, toggleSelectionOfDiagramElements, toggleSelectionOfSemanticElements, zoom, zoomToFocus, zoomToFocus, zoomToLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.cau.cs.kieler.klighd.internal.IDiagramOutlinePage.Provider
getDiagramOutlinePageMethods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelectionMethods inherited from interface de.cau.cs.kieler.klighd.IViewer
addViewChangedListener, removeViewChangedEventListener
-
Field Details
-
KLIGHD_UI_CONTEXT_ID
Constant string defining the KLighD-specific Eclipse UI key binding context id.- See Also:
-
-
Constructor Details
-
UiContextViewer
Constructor.- Parameters:
parent- the parentCompositethe diagram canvas is to be attached topart- theIDiagramWorkbenchPartthisContextVieweris attached to (is only required for setting the selection provider and ui context in time!)
-
-
Method Details
-
setModel
- Specified by:
setModelin interfaceIViewer- Overrides:
setModelin classContextViewer
-