Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.selectAndReveal()


      IDocument document = editor.getDocumentProvider().getDocument(
          editor.getEditorInput());
      int offset;
      try {
        offset = document.getLineOffset(lineNumberToReveal);
        editor.selectAndReveal(offset, 0);
      } catch (BadLocationException e) {
        Activator.logError(
            "Error revealing line " + lineNumberToReveal, e); //$NON-NLS-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.