Package | Description |
---|---|
org.eclipse.jface.text |
Provides a framework for creating and manipulating text documents.
|
org.eclipse.swt.custom |
SWT Custom widgets.
|
org.eclipse.ui.console |
Application programming interfaces for interaction
with the Eclipse console.
|
Modifier and Type | Method and Description |
---|---|
StyleRange |
TextPresentation.getDefaultStyleRange()
Returns this presentation's default style range.
|
StyleRange |
TextPresentation.getFirstStyleRange()
Returns the style range with the smallest offset ignoring the default style range or null
if the presentation is empty.
|
StyleRange |
TextPresentation.getLastStyleRange()
Returns the style range with the highest offset ignoring the default style range.
|
protected StyleRange |
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 . |
Modifier and Type | Method and Description |
---|---|
void |
TextPresentation.addStyleRange(StyleRange range)
Add the given range to the presentation.
|
void |
TextPresentation.mergeStyleRange(StyleRange range)
Merges the given range into this presentation.
|
void |
TextPresentation.mergeStyleRanges(StyleRange[] ranges)
Merges the given ranges into this presentation.
|
protected StyleRange |
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 . |
void |
TextPresentation.replaceStyleRange(StyleRange range)
Replaces the given range in this presentation.
|
void |
TextPresentation.replaceStyleRanges(StyleRange[] ranges)
Replaces the given ranges in this presentation.
|
void |
TextPresentation.setDefaultStyleRange(StyleRange range)
Set the default style range of this presentation.
|
Modifier and Type | Field and Description |
---|---|
StyleRange |
Bullet.style |
StyleRange |
PaintObjectEvent.style
the StyleRange
|
StyleRange[] |
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.
|
Modifier and Type | Method and Description |
---|---|
StyleRange |
StyledText.getStyleRangeAtOffset(int offset)
Returns the style range at the given offset.
|
StyleRange[] |
StyledText.getStyleRanges()
Returns the styles.
|
StyleRange[] |
StyledText.getStyleRanges(boolean includeRanges)
Returns the styles.
|
StyleRange[] |
StyledText.getStyleRanges(int start,
int length)
Returns the styles for the given text range.
|
StyleRange[] |
StyledText.getStyleRanges(int start,
int length,
boolean includeRanges)
Returns the styles for the given text range.
|
Modifier and Type | Method and Description |
---|---|
void |
StyledText.replaceStyleRanges(int start,
int length,
StyleRange[] ranges)
Replaces the styles in the given range with new styles.
|
void |
StyledText.setStyleRange(StyleRange range)
Adds the specified style.
|
void |
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.
|
Constructor and Description |
---|
Bullet(int type,
StyleRange style)
Create a new bullet the specified style and type.
|
Bullet(StyleRange style)
Create a new bullet the specified style, the type is set to ST.BULLET_DOT.
|
Modifier and Type | Method and Description |
---|---|
StyleRange[] |
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. |
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.