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

Bug 313721

Summary: [GMF Diagram Extensibility] It should be possible to extend / reuse generated diagrams to created new kind of diagrams
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Yann Tanguy CLA 2010-05-20 09:17:40 EDT
It should be possible to extend / reuse generated diagrams to created new kind of diagrams.

In particular, some UML2 diagrams may be used as a basis to create SysML diagrams. A part of the generated code requires to be reusable (View, EditPartProviders...).
Comment 1 Yann Tanguy CLA 2010-05-20 09:23:34 EDT
In aspects::xpt::providers::ViewProvider.xpt the following method are generated with protected visibility to make overriding possible:
- stampShortcut
- createLabel
- createCompartment
- getSemanticElement
- getSemanticElementType

Done in r1660.
Comment 2 Yann Tanguy CLA 2010-05-28 08:18:27 EDT
Visibility modified "manually" in Class & Composite Structure Diagrams (accordingly to xpt templates).

Done in r1736.
Comment 3 Yann Tanguy CLA 2010-06-10 05:57:03 EDT
Class Diagram was regenerated with not up to date generation template, causing wrong visibility on some methods from UMLViewProvider.

Visibility corrected manually in r1873.
Comment 4 Yann Tanguy CLA 2012-02-22 09:17:38 EST
Fixed.