Bug 471537

Summary: Support nsURI from target platform
Product: [Modeling] Sirius Reporter: Melanie Bats <melanie.bats>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: cedric.brun, maxime.porhel, pierre-charles.david, thomas.guiu
Version: 3.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Melanie Bats CLA 2015-07-01 03:06:31 EDT
To develop UML Designer, I am using a target platform which contains the uml metamodel. When I try to reference the uml metamodel from the "Metamodels" tab on a representation, if the metamodel is only defined in the TP, the wizard does not proposes it as possible selection. As I am not using the live editing mode, it could be interesting, that the metamodels selection wizard provides also the nsURI coming from the target platform.
Comment 1 Cedric Brun CLA 2015-07-01 03:12:17 EDT
We should probably have a look on how the code evolved in the EcoreEditor when support for Target Platform Ecore's was added (especially in the dialog which opens when picking "load resource") and adapt our code in the same way to get the same dialog.
Comment 2 Maxime Porhel CLA 2015-07-01 05:23:05 EDT
See org.eclipse.emf.ecore.presentation.EcoreActionBarContributor.ExtendedLoadResourceAction


This dialog was used in the previous "metamodel" property section of the RepresentationDescription and RepresentationExtensionDescription, see: 
 . RepresentationDescriptionMetamodelPropertySection 
 . RepresentationExtensionDescriptionMetamodelPropertySection


The property sections to correct are: 
 . RepresentationDescriptionMetamodelPropertySectionSpec
 . RepresentationExtensionDescriptionMetamodelPropertySectionSpec