|
|||||||||
| Home >> All >> org >> eclipse >> jface >> text >> [ presentation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jface.text.presentation
Interface IPresentationDamager

- public interface IPresentationDamager
A presentation damager is a strategy used by a presentation reconciler to determine the region of the document's presentation which must be rebuilt because of a document change. A presentation damager is assumed to be specific for a particular document content type. A presentation damager is expected to return a damage region which is a valid input for a presentation repairer. I.e. having access to the damage region only the repairer must be able to derive all the information needed to successfully repair this region.
This interface must either be implemented by clients or clients use the
rule-based default implementation
org.eclipse.jface.text.rules.DefaultDamagerRepairer. Implementers
should be registered with a presentation reconciler in order get involved in
the reconciling process.
| Method Summary | |
org.eclipse.jface.text.IRegion |
getDamageRegion(org.eclipse.jface.text.ITypedRegion partition,
org.eclipse.jface.text.DocumentEvent event,
boolean documentPartitioningChanged)
Returns the damage in the document's presentation caused by the given document change. |
void |
setDocument(org.eclipse.jface.text.IDocument document)
Tells the presentation damager on which document it will work. |
| Method Detail |
setDocument
public void setDocument(org.eclipse.jface.text.IDocument document)
- Tells the presentation damager on which document it will work.
getDamageRegion
public org.eclipse.jface.text.IRegion getDamageRegion(org.eclipse.jface.text.ITypedRegion partition, org.eclipse.jface.text.DocumentEvent event, boolean documentPartitioningChanged)
- Returns the damage in the document's presentation caused by the given document change.
The damage is restricted to the specified partition for which the presentation damager is
responsible. The damage may also depend on whether the document change also caused changes
of the document's partitioning.
|
|||||||||
| Home >> All >> org >> eclipse >> jface >> text >> [ presentation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC