org.eclipse.cdt.internal.ui.editor
Class SemanticHighlighting
java.lang.Object
org.eclipse.cdt.internal.ui.editor.SemanticHighlighting
public abstract class SemanticHighlighting
- extends java.lang.Object
Semantic highlighting.
Cloned from JDT.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemanticHighlighting
public SemanticHighlighting()
getPreferenceKey
public abstract java.lang.String getPreferenceKey()
- Returns:
- the preference key, will be augmented by a prefix and a suffix for each preference
getDefaultTextColor
public org.eclipse.swt.graphics.RGB getDefaultTextColor()
- Returns:
- the default text color
isBoldByDefault
public boolean isBoldByDefault()
- Returns:
true
if the text attribute bold is set by default
isItalicByDefault
public boolean isItalicByDefault()
- Returns:
true
if the text attribute italic is set by default
isStrikethroughByDefault
public boolean isStrikethroughByDefault()
- Returns:
true
if the text attribute strikethrough is set by default
isUnderlineByDefault
public boolean isUnderlineByDefault()
- Returns:
true
if the text attribute underline is set by default- Since:
- 3.1
isEnabledByDefault
public abstract boolean isEnabledByDefault()
- Returns:
true
if the text attribute italic is enabled by default
getDisplayName
public abstract java.lang.String getDisplayName()
- Returns:
- the display name
consumes
public abstract boolean consumes(SemanticToken token)
- Returns
true
iff the semantic highlighting consumes the semantic token.
NOTE: Implementors are not allowed to keep a reference on the token or on any object
retrieved from the token.
- Parameters:
token
- the semantic token for a IASTName
- Returns:
true
iff the semantic highlighting consumes the semantic token