|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.eclipse.xml.editors.NonRuleBasedDamagerRepairer
public class NonRuleBasedDamagerRepairer
| Field Summary | |
|---|---|
protected TextAttribute |
fDefaultTextAttribute
The default text attribute if non is returned as data by the current token |
protected IDocument |
fDocument
The document this object works on |
| Constructor Summary | |
|---|---|
NonRuleBasedDamagerRepairer(TextAttribute defaultTextAttribute)
Constructor for NonRuleBasedDamagerRepairer. |
|
| Method Summary | |
|---|---|
protected void |
addRange(TextPresentation presentation,
int offset,
int length,
TextAttribute attr)
Adds style information to the given text presentation. |
void |
createPresentation(TextPresentation presentation,
ITypedRegion region)
|
protected int |
endOfLineOf(int offset)
Returns the end offset of the line that contains the specified offset or if the offset is inside a line delimiter, the end offset of the next line. |
IRegion |
getDamageRegion(ITypedRegion partition,
DocumentEvent event,
boolean documentPartitioningChanged)
|
void |
setDocument(IDocument document)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IDocument fDocument
protected TextAttribute fDefaultTextAttribute
| Constructor Detail |
|---|
public NonRuleBasedDamagerRepairer(TextAttribute defaultTextAttribute)
| Method Detail |
|---|
public void setDocument(IDocument document)
IPresentationRepairer#setDocument(IDocument)
protected int endOfLineOf(int offset)
throws BadLocationException
offset - the offset whose line end offset must be computed
BadLocationException - if offset is invalid in the current document
public IRegion getDamageRegion(ITypedRegion partition,
DocumentEvent event,
boolean documentPartitioningChanged)
IPresentationDamager#getDamageRegion(ITypedRegion, DocumentEvent, boolean)
public void createPresentation(TextPresentation presentation,
ITypedRegion region)
IPresentationRepairer#createPresentation(TextPresentation, ITypedRegion)
protected void addRange(TextPresentation presentation,
int offset,
int length,
TextAttribute attr)
presentation - the text presentation to be extendedoffset - the offset of the range to be styledlength - the length of the range to be styledattr - the attribute describing the style of the range to be styled
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||