Package org.eclipse.ui.ide

Examples of org.eclipse.ui.ide.IGotoMarker


  }
 
  private void gotoMarker(IMarker marker) {
   
    // Use the provided adapter if any
    IGotoMarker gotoMarkerAdapter= (IGotoMarker)fTextEditor.getAdapter(IGotoMarker.class);
    if (gotoMarkerAdapter != null) {
      gotoMarkerAdapter.gotoMarker(marker);
      return;
    }
   
    int start= MarkerUtilities.getCharStart(marker);
    int end= MarkerUtilities.getCharEnd(marker);
View Full Code Here


      if (key == IDesignViewer.class) {
        result = fDesignViewer;

      }
      else if (key.equals(IGotoMarker.class)) {
        result = new IGotoMarker() {
          public void gotoMarker(IMarker marker) {
            XMLMultiPageEditorPart.this.gotoMarker(marker);
          }
        };
      }
View Full Code Here

          editorPart = htmlWodTab().getActiveEmbeddedEditor();
        }
        if (editorPart == null) {
          continue;
        }
        IGotoMarker gotoMarker = (IGotoMarker) editorPart.getAdapter(IGotoMarker.class);
        if (gotoMarker == null) {
          return;
        }
        if (htmlWodTab().isHtmlActive()) {
          this.switchToHtml();
        }
        if (!htmlWodTab().isHtmlActive()) {
          this.switchToWod();
        }
        gotoMarker.gotoMarker(marker);
        return;
      }

    }
  }
View Full Code Here

      // IFile
      if(resource instanceof IFile){
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        try {
          IEditorPart editor = IDE.openEditor(page, (IFile)resource, true);
          IGotoMarker gotoMarker = (IGotoMarker)editor.getAdapter(IGotoMarker.class);
          if(gotoMarker!=null){
            IMarker marker= ((IFile)resource).createMarker(IMarker.TEXT);
            marker.setAttribute(IMarker.CHAR_START, beginOffset);
            marker.setAttribute(IMarker.CHAR_END, beginOffset);
            gotoMarker.gotoMarker(marker);
          }
        } catch (Exception ex) {
          HTMLPlugin.logException(ex);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ide.IGotoMarker

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.