|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Presentation damagers are used by a presentation reconciler to determine the region of the document's presentation which must be rebuilt because of the occurrence 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 neede to sucessfully repair this region.
This interface must either be implemented by clients or clients use the rule-based
default implementation RuleBasedDamagerRepairer
. Implementers should be
registered with a presentation reconciler in order get involved in the reconciling
process.
IPresentationReconciler
,
IDocument
,
DocumentEvent
,
IPresentationRepairer
Method Summary | |
IRegion |
getDamageRegion(ITypedRegion partition,
DocumentEvent event,
boolean documentPartitioningChanged)
Returns the damage in the document's presentation caused by the given document change. |
void |
setDocument(IDocument document)
Tells the presentation damager on which document it will work. |
Method Detail |
public void setDocument(IDocument document)
document
- the damager's working documentpublic IRegion getDamageRegion(ITypedRegion partition, DocumentEvent event, boolean documentPartitioningChanged)
partition
- the partition inside which the damage must be determinedevent
- the event describing the change whose damage must be determined
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |