Examples of IEditorSite


Examples of org.eclipse.ui.IEditorSite

  protected abstract void createPreNamespacePages();

  @Override
  protected IEditorSite createSite(IEditorPart page) {
    IEditorSite site = null;
    if (page == sourceEditor) {
      site = new MultiPageEditorSite(this, page) {
        @Override
        public IEditorActionBarContributor getActionBarContributor() {
          IEditorActionBarContributor contributor = super.getActionBarContributor();
View Full Code Here

Examples of org.eclipse.ui.IEditorSite

    IWorkbenchWindow window = plugin.getWorkbench().getActiveWorkbenchWindow();
    if (window != null) {
      IWorkbenchPage page = window.getActivePage();
      IEditorPart activeEditorPart = page.getActiveEditor();
      if (activeEditorPart != null) {
        IEditorSite editorSite = page.getActiveEditor().getEditorSite();
        ISelectionProvider selectionProvider = editorSite.getSelectionProvider();
        if (selectionProvider != null) {
          ISelection selection = selectionProvider.getSelection();
          if (selection instanceof ITextSelection) {
            this.lineNumber = String.valueOf(((ITextSelection) selection).getStartLine() + 1);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.