TextPresentation.getFirstStyleRange()
Returns the style range with the smallest offset ignoring the default style range or null
if the presentation is empty.
TextViewer.modelStyleRange2WidgetStyleRange(
StyleRange range)
Translates a style range given relative to the viewer's document into style
ranges relative to the viewer's widget or null.
TextViewer.modelStyleRange2WidgetStyleRange(
StyleRange range)
Translates a style range given relative to the viewer's document into style
ranges relative to the viewer's widget or null.
ViewerRow.getStyleRanges(int columnIndex)
Returns the style ranges to be applied on the text label at the column
index or null if no style ranges have been set.
StyledCellLabelProvider.prepareStyleRange(
StyleRange styleRange,
boolean applyColors)
Prepares the given style range before it is applied to the label.
StyledCellLabelProvider.prepareStyleRange(
StyleRange styleRange,
boolean applyColors)
Prepares the given style range before it is applied to the label.
void
ViewerRow.setStyleRanges(int columnIndex,
StyleRange[] styleRanges)
Set the style ranges to be applied on the text label at the column index
Note: Requires
StyledCellLabelProvider with owner draw enabled.
LineStyleEvent.styles
line styles (output)
Note: Because a StyleRange includes the start and length, the
same instance cannot occur multiple times in the array of styles.
StyledText.setStyleRanges(int[] ranges,
StyleRange[] styles)
Sets styles to be used for rendering the widget content.
void
StyledText.setStyleRanges(int start,
int length,
int[] ranges,
StyleRange[] styles)
Clears the styles in the range specified by start and
length and adds the new styles.
void
StyledText.setStyleRanges(
StyleRange[] ranges)
Sets styles to be used for rendering the widget content.
boolean
StyleRange.similarTo(
StyleRange style)
Compares the specified object to this StyleRange and answer if the two
are similar.
IConsoleDocumentPartitioner.getStyleRanges(int offset,
int length)
Returns style ranges for the specified region of this partitioner's document
to use when rendering, or null if none.