/** * Creates a new GraphicsEditorOutlinePage. It is important, that this outline page uses the same handlers (ActionRegistry, KeyHandler, ZoomManagerAdapter, * ...) as the main editor, so that the behaviour is synchronized between them. * * @param diagramEditor * the attached diagram editor * @since 0.9 */ public DiagramEditorOutlinePage(IDiagramContainerUI diagramEditor) { super(new TriqOutlineTreeViewer(diagramEditor)); _graphicalViewer = diagramEditor.getGraphicalViewer(); _actionRegistry = diagramEditor.getAdapter(ActionRegistry.class); _editDomain = diagramEditor.getEditDomain(); _keyHandler = diagramEditor.getAdapter(KeyHandler.class); _selectionSynchronizer = diagramEditor.getAdapter(SelectionSynchronizer.class); _diagramEditor = diagramEditor; }
@Override protected SelectionSynchronizer getSelectionSynchronizer() { if (synchronizer == null) { synchronizer = new TriqSelectionSynchronizer(); } return synchronizer; }
public SelectionSynchronizer getSelectionSynchronizer() { return super.getSelectionSynchronizer(); }
public SelectionSynchronizer getEditorSelectionSynchronizer() { return getSelectionSynchronizer(); }
@Override public SelectionSynchronizer getSelectionSynchronizer() { return super.getSelectionSynchronizer(); }
public SelectionSynchronizer getSelectionSynchronizer() { if (this.synchronizer == null) this.synchronizer = new SelectionSynchronizer(); return this.synchronizer; }
public void setSelectionSynchronizer(SelectionSynchronizer selectionSynchronizer) { this.selectionSynchronizer = selectionSynchronizer; }
/** * Creates a new GraphicsEditorOutlinePage. It is important, that this * outline page uses the same handlers (ActionRegistry, KeyHandler, * ZoomManagerAdapter, ...) as the main editor, so that the behaviour is * synchronized between them. * * @param viewer * The viewer (typically a tree-viewer) for the hierarchical * outline. * @param graphicalViewer * The GraphicalViewer for the Thumbnail. * @param actionRegistry * The ActionRegistry to find/register Actions. * @param editDomain * The EditDomain to use for Commands. * @param keyHandler * The KeyHandler to use. * @param zoomManagerAdapter * The ZoomManagerAdapter to use for the Thumbnail-Display. * @param selectionSynchronizer * The selection-synchronizer for the main-editor and this * outline page. * @param configurationProviderHolder * the configuration provider holder */ public GraphicsEditorOutlinePage(EditPartViewer viewer, GraphicalViewer graphicalViewer, ActionRegistry actionRegistry, EditDomain editDomain, KeyHandler keyHandler, Object zoomManagerAdapter, SelectionSynchronizer selectionSynchronizer, DiagramEditor diagramEditor) { super(viewer); _graphicalViewer = graphicalViewer; _actionRegistry = actionRegistry; _editDomain = editDomain; _keyHandler = keyHandler; _zoomManagerAdapter = zoomManagerAdapter; _selectionSynchronizer = selectionSynchronizer; _diagramEditor = diagramEditor; }
/** * Returns the selection syncronizer object. The synchronizer can be used to sync the selection of 2 or more EditPartViewers. * * @return the syncrhonizer */ protected SelectionSynchronizer getSelectionSynchronizer() { return parent.getSelectionSynchronizer(); }
public SelectionSynchronizer getSelectionSynchronizer();