Examples of overlapsWithVisibleRegion()


Examples of org.eclipse.jface.text.ITextViewer.overlapsWithVisibleRegion()

  private void select() {
    ITextViewer viewer= fCurrentTarget.getViewer();
    if (viewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension5= (ITextViewerExtension5) viewer;
      extension5.exposeModelRange(new Region(fFramePosition.offset, fFramePosition.length));
    } else if (!viewer.overlapsWithVisibleRegion(fFramePosition.offset, fFramePosition.length)) {
      viewer.resetVisibleRegion();
    }
    viewer.revealRange(fFramePosition.offset, fFramePosition.length);
    viewer.setSelectedRange(fFramePosition.offset, fFramePosition.length);
  }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewer.overlapsWithVisibleRegion()

  private void select() {
    ITextViewer viewer= fCurrentTarget.getViewer();
    if (viewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension5= (ITextViewerExtension5) viewer;
      extension5.exposeModelRange(new Region(fFramePosition.offset, fFramePosition.length));
    } else if (!viewer.overlapsWithVisibleRegion(fFramePosition.offset, fFramePosition.length)) {
      viewer.resetVisibleRegion();
    }
    viewer.revealRange(fFramePosition.offset, fFramePosition.length);
    viewer.setSelectedRange(fFramePosition.offset, fFramePosition.length);
  }
View Full Code Here

Examples of org.eclipse.jface.text.ITextViewer.overlapsWithVisibleRegion()

  private void select() {
    ITextViewer viewer= fCurrentTarget.getViewer();
    if (viewer instanceof ITextViewerExtension5) {
      ITextViewerExtension5 extension5= (ITextViewerExtension5) viewer;
      extension5.exposeModelRange(new Region(fFramePosition.offset, fFramePosition.length));
    } else if (!viewer.overlapsWithVisibleRegion(fFramePosition.offset, fFramePosition.length)) {
      viewer.resetVisibleRegion();
    }
    viewer.revealRange(fFramePosition.offset, fFramePosition.length);
    viewer.setSelectedRange(fFramePosition.offset, fFramePosition.length);
  }
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.