Java 类org.eclipse.gef.ui.parts.SelectionSynchronizer 实例源码

项目:triquetrum    文件:DiagramEditorOutlinePage.java   
/**
 * 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;
}
项目:triquetrum    文件:TriqDiagramEditor.java   
@Override
protected SelectionSynchronizer getSelectionSynchronizer() {
  if (synchronizer == null) {
    synchronizer = new TriqSelectionSynchronizer();
  }
  return synchronizer;
}
项目:bdf2    文件:DbToolGefEditor.java   
public SelectionSynchronizer getSelectionSynchronizer() {
    return super.getSelectionSynchronizer();
}
项目:ForgedUI-Eclipse    文件:GUIEditor.java   
public SelectionSynchronizer getEditorSelectionSynchronizer() {
    return getSelectionSynchronizer();
}
项目:PDFReporter-Studio    文件:AGraphicEditor.java   
@Override
public SelectionSynchronizer getSelectionSynchronizer() {
    return super.getSelectionSynchronizer();
}
项目:PDFReporter-Studio    文件:AbstractVisualEditor.java   
@Override
public SelectionSynchronizer getSelectionSynchronizer() {
    return super.getSelectionSynchronizer();
}
项目:snaker-designer    文件:SnakerFormDesignerEditor.java   
@Override
public SelectionSynchronizer getSelectionSynchronizer() {
    return super.getSelectionSynchronizer();
}
项目:snaker-designer    文件:SnakerFlowDesignerEditor.java   
public SelectionSynchronizer getSelectionSynchronizer() {
    if (this.synchronizer == null)
        this.synchronizer = new SelectionSynchronizer();
    return this.synchronizer;
}
项目:olca-app    文件:OutlinePage.java   
public void setSelectionSynchronizer(SelectionSynchronizer selectionSynchronizer) {
    this.selectionSynchronizer = selectionSynchronizer;
}
项目:SecureBPMN    文件:GraphicsEditorOutlinePage.java   
/**
 * 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;
}
项目:seg.jUCMNav    文件:UrnEditor.java   
/**
 * 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();
}
项目:PDFReporter-Studio    文件:IGraphicalEditor.java   
public SelectionSynchronizer getSelectionSynchronizer();