Package org.eclipse.xtext.ui.editor.outline.actions

Examples of org.eclipse.xtext.ui.editor.outline.actions.OutlineWithEditorLinker


  private final Map<OutlinePage, OutlineWithEditorLinker> page2linker = Maps.newHashMap();

  /** {@inheritDoc} */
  @Override public void register(OutlinePage outlinePage) {
    addPropertyChangeListener();
    OutlineWithEditorLinker outlineWithEditorLinker = outlineWithEditorLinkerProvider.get();
    outlineWithEditorLinker.activate(outlinePage);
    getPreferenceStoreAccess().getPreferenceStore().addPropertyChangeListener(outlineWithEditorLinker);
    outlineWithEditorLinker.setLinkingEnabled(true);
    page2linker.put(outlinePage, outlineWithEditorLinker);
  }
View Full Code Here


  }

  @Override
  public void deregister(OutlinePage outlinePage) {
    removePropertyChangeListener();
    OutlineWithEditorLinker outlineWithEditorLinker = page2linker.remove(outlinePage);
    outlineWithEditorLinker.deactivate();
    getPreferenceStoreAccess().getPreferenceStore().removePropertyChangeListener(outlineWithEditorLinker);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.outline.actions.OutlineWithEditorLinker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.