Class StickyLine
java.lang.Object
org.eclipse.ui.texteditor.stickyscroll.StickyLine
- All Implemented Interfaces:
IStickyLine
Default implementation of
IStickyLine. Information about the text and
style ranges are calculated from the given text widget.- Since:
- 3.20
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the line number of the sticky line.Returns the style ranges of the sticky line.getText()Returns the text of the sticky line.
-
Field Details
-
lineNumber
protected int lineNumber -
text
-
sourceViewer
-
-
Constructor Details
-
StickyLine
-
-
Method Details
-
getLineNumber
public int getLineNumber()Description copied from interface:IStickyLineReturns the line number of the sticky line.- Specified by:
getLineNumberin interfaceIStickyLine- Returns:
- the line number of the sticky line
-
getText
Description copied from interface:IStickyLineReturns the text of the sticky line.- Specified by:
getTextin interfaceIStickyLine- Returns:
- the text of the sticky line
-
getStyleRanges
Description copied from interface:IStickyLineReturns the style ranges of the sticky line.- Specified by:
getStyleRangesin interfaceIStickyLine- Returns:
- the style ranges of the sticky line
-