Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334871

Summary: [UML Compare] Use {o.e.e.c}diff.extension extension point to customize ModelStructureMergeViewer
Product: [Modeling] Papyrus Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: CoreAssignee: Tatiana Fesenko <tatiana.fesenko>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 330183    

Description Tatiana Fesenko CLA 2011-01-20 05:57:16 EST
Now PapyrusDiffEngine is used to properly process stereotype applications and changes in tagged-values.
EMF Compare provides {o.e.e.c}diff.extension extension point which allows us
1) to postprocess result of DefaultDiffEngine
2) Introduce custom elements for StereotypeChange and TaggedValueChange in DiffModel. This allows us to customize look of the tree (labels and icons) not to mention that it will increase readability of the code.
Comment 1 Tatiana Fesenko CLA 2011-01-20 05:58:29 EST
Initial version of UML Diff Extention metamodel is committed to org.eclipse.papyrus.compare plugin
Comment 2 Tatiana Fesenko CLA 2011-01-20 05:59:26 EST
(In reply to comment #0)
> 1) to postprocess result of DefaultDiffEngine
Initial version is submitted
Comment 3 Tatiana Fesenko CLA 2011-01-20 06:04:22 EST
(In reply to comment #1)
> Initial version of UML Diff Extention metamodel is committed to
> org.eclipse.papyrus.compare plugin
Please customize icons and labels of the elements.
In fact, they can be customized in two ways:
1) using standard EMF Edit providers 
 - this approach is standard, it won't be influenced by changes in the core DiffExtension, but it will need generation of new classes, thus increasing amout of code
2) Override AbstractDiffExtension#getText() and #getLabel() methods. 

I'd prefer to use approach (2) as it is less standard, but more lightweight.
Comment 4 Tatiana Fesenko CLA 2011-02-10 04:45:53 EST
Fixed in r3840