Interface IStickyLinesProvider
public interface IStickyLinesProvider
A sticky lines provider calculates the sticky lines for a given source
viewer. The sticky lines will be displayed in the top area of the editor.
- Since:
- 3.20
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAdditional properties and access in order to calculate the sticky lines. -
Method Summary
Modifier and TypeMethodDescriptiongetStickyLines(ISourceViewer sourceViewer, int lineNumber, IStickyLinesProvider.StickyLinesProperties properties) Calculate the sticky lines for the source code of the given sourceViewer.
-
Method Details
-
getStickyLines
List<IStickyLine> getStickyLines(ISourceViewer sourceViewer, int lineNumber, IStickyLinesProvider.StickyLinesProperties properties) Calculate the sticky lines for the source code of the given sourceViewer. Specific properties, such as thetabWidht, can be retrieved from theproperties.- Parameters:
sourceViewer- The source viewer containing the source code and gives access to the text widgetlineNumber- The line number to calculate the sticky lines forproperties- Properties for additional information- Returns:
- The list of sticky lines to show
-