Java Code Examples for org.eclipse.jface.text.JFaceTextUtil#getPartialTopIndex()
The following examples show how to use
org.eclipse.jface.text.JFaceTextUtil#getPartialTopIndex() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BookmarkRulerColumn.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
/** * Returns the viewer's first visible line, even if only partially visible. * * @return the viewer's first visible line */ private int getInclusiveTopIndex() { if (fCachedTextWidget != null && !fCachedTextWidget.isDisposed()) { return JFaceTextUtil.getPartialTopIndex(fCachedTextViewer); } return -1; }
Example 2
Source File: CommonLineNumberRulerColumn.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * Returns the viewer's first visible line, even if only partially visible. * * @return the viewer's first visible line */ private int getInclusiveTopIndex() { if (fCachedTextWidget != null && !fCachedTextWidget.isDisposed()) { return JFaceTextUtil.getPartialTopIndex(fCachedTextViewer); } return -1; }