Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 430876 - [Model/Profile Import] Profiles unusable after Import
Summary: [Model/Profile Import] Profiles unusable after Import
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-21 09:34 EDT by Ronan Bar CLA
Modified: 2014-04-07 09:12 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronan Bar CLA 2014-03-21 09:34:24 EDT
It seems that profiles imported in the import tool are not usable. The extensions from Stereotypes to the UML Meta-Model elements are not valid along with the base_X property types. After an import of a super simple profile I cannot pass validation and so cannot use the profile without redefining all the extensions.
Comment 1 Camille Letavernier CLA 2014-03-28 14:17:39 EDT
Commit f31d4c4 fixes the Profile import transformation.

However, the conversion from source "uml::Class" to Papyrus "uml::DataType" is still fragile. We may need some real-world test models to ensure the validity of the transformation.

Especially, the following use cases need to be tested:

- Source definition must still work (i.e. we shoudln't need to redefine the profile before using it)
- Forward profile migration must still work (i.e. source models on which the source profile is applied, should be properly migrated to target models with target profile). I cannot test this, because the profile reconnection is not available yet.
- Elements referencing a source "uml::Class" must reference the Papyrus "uml::DataType" after the transformation (Currently, properties, generalizations and GMF Shapes have been updated)

It may be simpler (safer) to support uml::Class in Papyrus Profile diagrams (In addition to uml::DataType), even if they are semantically equivalent (by implementation, at least).

This bug is fixed, so let's move the discussion for further improvements to Bug 410987
Comment 2 Ronan Bar CLA 2014-04-07 09:12:58 EDT
Great, it works.