|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.editors.syntax.NonRuleBasedDamagerRepairer
public class NonRuleBasedDamagerRepairer
The UNO-IDL document repairer. This is used by the UNO-IDL editor. In order to fully understand the editor mechanisms, please report to Eclipse plugin developer's guide.
Field Summary | |
---|---|
protected org.eclipse.jface.text.TextAttribute |
mDefaultTextAttribute
The default text attribute if non is returned as data by the current token. |
protected org.eclipse.jface.text.IDocument |
mDocument
The document this object works on . |
Constructor Summary | |
---|---|
NonRuleBasedDamagerRepairer(org.eclipse.jface.text.TextAttribute pDefaultTextAttribute)
Default constructor. |
Method Summary | |
---|---|
protected void |
addRange(org.eclipse.jface.text.TextPresentation pPresentation,
int pOffset,
int pLength,
org.eclipse.jface.text.TextAttribute pAttr)
Adds style information to the given text presentation. |
void |
createPresentation(org.eclipse.jface.text.TextPresentation pPresentation,
org.eclipse.jface.text.ITypedRegion pRegion)
|
protected int |
endOfLineOf(int pOffset)
Returns the end offset of the line that contains the specified offset. |
org.eclipse.jface.text.IRegion |
getDamageRegion(org.eclipse.jface.text.ITypedRegion pPartition,
org.eclipse.jface.text.DocumentEvent pEvent,
boolean pDocumentPartitioningChanged)
|
void |
setDocument(org.eclipse.jface.text.IDocument pDocument)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.jface.text.IDocument mDocument
protected org.eclipse.jface.text.TextAttribute mDefaultTextAttribute
Constructor Detail |
---|
public NonRuleBasedDamagerRepairer(org.eclipse.jface.text.TextAttribute pDefaultTextAttribute)
pDefaultTextAttribute
- the attribute to assign to default textMethod Detail |
---|
public void setDocument(org.eclipse.jface.text.IDocument pDocument)
setDocument
in interface org.eclipse.jface.text.presentation.IPresentationDamager
setDocument
in interface org.eclipse.jface.text.presentation.IPresentationRepairer
protected int endOfLineOf(int pOffset) throws org.eclipse.jface.text.BadLocationException
pOffset
- the offset whose line end offset must be computed
org.eclipse.jface.text.BadLocationException
- if offset is invalid in the current
documentpublic org.eclipse.jface.text.IRegion getDamageRegion(org.eclipse.jface.text.ITypedRegion pPartition, org.eclipse.jface.text.DocumentEvent pEvent, boolean pDocumentPartitioningChanged)
getDamageRegion
in interface org.eclipse.jface.text.presentation.IPresentationDamager
public void createPresentation(org.eclipse.jface.text.TextPresentation pPresentation, org.eclipse.jface.text.ITypedRegion pRegion)
createPresentation
in interface org.eclipse.jface.text.presentation.IPresentationRepairer
protected void addRange(org.eclipse.jface.text.TextPresentation pPresentation, int pOffset, int pLength, org.eclipse.jface.text.TextAttribute pAttr)
pPresentation
- the text presentation to be extendedpOffset
- the offset of the range to be styledpLength
- the length of the range to be styledpAttr
- 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 |