protected static class SemanticHighlightingReconciler.HighlightedPosition
extends org.eclipse.jface.text.Position
| Red (tfeng) |
| Red (tfeng) |
| Constructor and Description |
|---|
HighlightedPosition(int offset,
int length,
SemanticHighlightingReconciler.HighlightingStyle highlighting,
java.lang.Object lock)
Initialize the styled positions with the given offset, length and
foreground color.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.custom.StyleRange |
createStyleRange()
Return a corresponding style range.
|
void |
delete()
Mark this position as deleted.
|
SemanticHighlightingReconciler.HighlightingStyle |
getHighlighting()
Return the highlighting style.
|
boolean |
isContained(int offset,
int length)
Test whether this position is contained in the given range.
|
boolean |
isEqual(int offset,
int length,
SemanticHighlightingReconciler.HighlightingStyle highlighting)
Test whether this highlighting's starting offset, length, and style
is equal to the given parameters.
|
void |
setLength(int length)
Set the length of this position.
|
void |
setOffset(int offset)
Set the offset of this position.
|
void |
undelete()
Mark this position as not deleted.
|
void |
update(int offset,
int length)
Update this position with the new offset and new length.
|
public HighlightedPosition(int offset,
int length,
SemanticHighlightingReconciler.HighlightingStyle highlighting,
java.lang.Object lock)
offset - The position offset.length - The position length.highlighting - The position's highlighting style.lock - The lock object.public org.eclipse.swt.custom.StyleRange createStyleRange()
public void delete()
delete in class org.eclipse.jface.text.Positionundelete()public SemanticHighlightingReconciler.HighlightingStyle getHighlighting()
public boolean isContained(int offset,
int length)
offset - The range offset.length - The range length.public boolean isEqual(int offset,
int length,
SemanticHighlightingReconciler.HighlightingStyle highlighting)
offset - The offset.length - The length.highlighting - The highlighting style.public void setLength(int length)
setLength in class org.eclipse.jface.text.Positionlength - The new length.public void setOffset(int offset)
setOffset in class org.eclipse.jface.text.Positionoffset - The new offset.public void undelete()
undelete in class org.eclipse.jface.text.Positiondelete()public void update(int offset,
int length)
offset - The new offset.length - The new length.