Package org.eclipse.ui.texteditor

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


      IEditorInput editorInput = editor.getEditorInput();
      if (editor instanceof ITextEditor) {
        ITextEditor textEditor = (ITextEditor) editor;
        IDocument document = textEditor.getDocumentProvider().getDocument(editorInput);
        IRegion lineInformation = document.getLineInformation(lineNumber);
        textEditor.selectAndReveal(lineInformation.getOffset(), 0);
      }
    }
    catch (Exception e) {
      log.debug(e.getMessage());
    }
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.