| Summary: | [UML Compare] Use {o.e.e.c}diff.extension extension point to customize ModelStructureMergeViewer | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Tatiana Fesenko <tatiana.fesenko> |
| Component: | Core | Assignee: | 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 | ||
Initial version of UML Diff Extention metamodel is committed to org.eclipse.papyrus.compare plugin (In reply to comment #0) > 1) to postprocess result of DefaultDiffEngine Initial version is submitted (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. Fixed in r3840 |
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.