Bug 304719 - Support converting a toplevel CMOF package into a metamodel.
Summary: Support converting a toplevel CMOF package into a metamodel.
Status: NEW
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: UML2 Inbox CLA
QA Contact:
URL:
Whiteboard: Compliance
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-03-04 13:25 EST by Nicolas Rouquette CLA
Modified: 2012-06-04 10:28 EDT (History)
1 user (show)

See Also:
Kenn.Hussey: juno-


Attachments
Patch for org.eclipse.uml2.examples.uml.ui and org.eclipse.uml2.uml.editor (15.19 KB, patch)
2010-03-04 13:26 EST, Nicolas Rouquette CLA
no flags Details | Diff
New version of the patch for org.eclipse.uml2.examples.ui, org.eclipse.uml2.uml.editor (15.55 KB, patch)
2010-03-04 13:49 EST, Nicolas Rouquette CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Rouquette CLA 2010-03-04 13:25:00 EST
To produce a normative metamodel for the OMG for UML and SysML, the attached patch supports the following procedure:

1) open the model with the package merge maps for the desired compliance level with the "UML Editor".

e.g.:
for UML: L3.xmi
for SysML: SysML-L3.xmi

2) select the toplevel package

3) menu: UML Editor > Package > OMG Merge...

The option defaults have been set for producing merged artifacts for the OMG.

4) menu: UML Editor > Convert To > Metamodel

5) menu: UML Editor > Package > Unapply Profile...

remove ecore.

6) create a separate folder where to save the model

This step is important to avoid overwriting other artifacts, e.g., UML Infrastructure.xmi, Superstructure.xmi, UML4SysML.xmi, ....

7) menu: File > Save As...

Select the separate folder.

Additional cleanup steps may be required.
Comment 1 Nicolas Rouquette CLA 2010-03-04 13:26:21 EST
Created attachment 160990 [details]
Patch for org.eclipse.uml2.examples.uml.ui and org.eclipse.uml2.uml.editor
Comment 2 Nicolas Rouquette CLA 2010-03-04 13:49:07 EST
Created attachment 161000 [details]
New version of the patch for org.eclipse.uml2.examples.ui, org.eclipse.uml2.uml.editor

Removed the rule in the original conversion that changed the visibility of associations to private.
Comment 3 Kenn Hussey CLA 2011-07-11 22:40:25 EDT
This will need to be done in order to prepare the reference metamodel for UML 2.4(.1) in UML2 4.0.
Comment 4 Kenn Hussey CLA 2011-08-22 23:41:15 EDT
As it turns out, this wasn't necessary in order to prepare the reference metamodel for UML 2.4. Instead, I used a separate model and merged the contents of the normative UML package (provided by the OMG as UML.xmi) into it.