Class StickyLine

java.lang.Object
org.eclipse.ui.texteditor.stickyscroll.StickyLine
All Implemented Interfaces:
IStickyLine

public class StickyLine extends Object implements IStickyLine
Default implementation of IStickyLine. Information about the text and style ranges are calculated from the given text widget.
Since:
3.20
  • Field Details

    • lineNumber

      protected int lineNumber
    • text

      protected String text
    • sourceViewer

      protected ISourceViewer sourceViewer
  • Constructor Details

    • StickyLine

      public StickyLine(int lineNumber, ISourceViewer sourceViewer)
  • Method Details

    • getLineNumber

      public int getLineNumber()
      Description copied from interface: IStickyLine
      Returns the line number of the sticky line.
      Specified by:
      getLineNumber in interface IStickyLine
      Returns:
      the line number of the sticky line
    • getText

      public String getText()
      Description copied from interface: IStickyLine
      Returns the text of the sticky line.
      Specified by:
      getText in interface IStickyLine
      Returns:
      the text of the sticky line
    • getStyleRanges

      public StyleRange[] getStyleRanges()
      Description copied from interface: IStickyLine
      Returns the style ranges of the sticky line.
      Specified by:
      getStyleRanges in interface IStickyLine
      Returns:
      the style ranges of the sticky line