Package | Description |
---|---|
org.eclipse.jface.viewers |
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
|
org.eclipse.ui.model |
Provides a workbench adapter for displaying workbench elements in the UI without
having to know the concrete type of the element, and various label providers for
workbench-specific objects like editors, views, and perspectives.
|
Modifier and Type | Field and Description |
---|---|
static StyledString.Styler |
StyledString.COUNTER_STYLER
A built-in styler using the
JFacePreferences.COUNTER_COLOR
managed in the JFace color registry (See
JFaceResources.getColorRegistry() ). |
static StyledString.Styler |
StyledString.DECORATIONS_STYLER
A built-in styler using the
JFacePreferences.DECORATIONS_COLOR
managed in the JFace color registry (See
JFaceResources.getColorRegistry() ). |
static StyledString.Styler |
StyledString.QUALIFIER_STYLER
A built-in styler using the
JFacePreferences.QUALIFIER_COLOR
managed in the JFace color registry (See
JFaceResources.getColorRegistry() ). |
Modifier and Type | Method and Description |
---|---|
static StyledString.Styler |
StyledString.createColorRegistryStyler(String foregroundColorName,
String backgroundColorName)
Creates a styler that takes the given foreground and background colors
from the JFace color registry.
|
protected StyledString.Styler |
DecoratingStyledCellLabelProvider.getDecorationStyle(Object element)
Sets the
StyledString.Styler to be used for string
decorations. |
Modifier and Type | Method and Description |
---|---|
StyledString |
StyledString.append(char[] chars,
StyledString.Styler styler)
Appends the string representation of the given character array
with a style to the
StyledString . |
StyledString |
StyledString.append(char ch,
StyledString.Styler styler)
Appends the string representation of the given character
with a style to the
StyledString . |
StyledString |
StyledString.append(String string,
StyledString.Styler styler)
Appends a string with a style to the
StyledString . |
void |
StyledString.setStyle(int offset,
int length,
StyledString.Styler styler)
Sets a styler to use for the given source range.
|
static StyledString |
StyledCellLabelProvider.styleDecoratedString(String decoratedString,
StyledString.Styler decorationStyler,
StyledString styledString)
Applies decoration styles to the decorated string and adds the styles of the previously
undecorated string.
|
Constructor and Description |
---|
StyledString(String string,
StyledString.Styler styler)
Creates an
StyledString initialized with a string and a
style. |
Modifier and Type | Method and Description |
---|---|
protected StyledString.Styler |
WorkbenchLabelProvider.getDecorationStyle(Object element)
Sets the
StyledString.Styler to be used for string decorations. |
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.