| java.lang.Object org.eclipse.ui.examples.templateeditor.editors.NonRuleBasedDamagerRepairer
NonRuleBasedDamagerRepairer | public class NonRuleBasedDamagerRepairer implements IPresentationDamager,IPresentationRepairer(Code) | | |
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) | | Creates a new damager/repairer.
Parameters: defaultTextAttribute - the default text attribute for all detected regions |
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) | | |
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) | | |
setDocument | public void setDocument(IDocument document)(Code) | | |
|
|