| java.lang.Object org.terracotta.dso.editors.xml.NonRuleBasedDamagerRepairer
NonRuleBasedDamagerRepairer | public class NonRuleBasedDamagerRepairer implements IPresentationDamager,IPresentationRepairer(Code) | | |
Constructor Summary | |
public | 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. | public 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. | public IRegion | getDamageRegion(ITypedRegion partition, DocumentEvent event, boolean documentPartitioningChanged) | public void | setDocument(IDocument document) |
fDefaultTextAttribute | protected TextAttribute fDefaultTextAttribute(Code) | | The default text attribute if non is returned as data by the current token
|
fDocument | protected IDocument fDocument(Code) | | The document this object works on
|
NonRuleBasedDamagerRepairer | public NonRuleBasedDamagerRepairer(TextAttribute defaultTextAttribute)(Code) | | Constructor for NonRuleBasedDamagerRepairer.
|
addRange | protected void addRange(TextPresentation presentation, int offset, int length, TextAttribute attr)(Code) | | Adds style information to the given text presentation.
Parameters: presentation - the text presentation to be extended Parameters: offset - the offset of the range to be styled Parameters: length - the length of the range to be styled Parameters: attr - the attribute describing the style of the range to be styled |
createPresentation | public void createPresentation(TextPresentation presentation, ITypedRegion region)(Code) | | See Also: IPresentationRepairer.createPresentation(TextPresentationITypedRegion) |
endOfLineOf | protected int endOfLineOf(int offset) throws BadLocationException(Code) | | 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.
Parameters: offset - the offset whose line end offset must be computed the line end offset for the given offset exception: BadLocationException - if offset is invalid in the current document |
getDamageRegion | public IRegion getDamageRegion(ITypedRegion partition, DocumentEvent event, boolean documentPartitioningChanged)(Code) | | See Also: IPresentationDamager.getDamageRegion(ITypedRegionDocumentEventboolean) |
setDocument | public void setDocument(IDocument document)(Code) | | See Also: IPresentationRepairer.setDocument(IDocument) |
|
|