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

Bug 321731

Summary: [DiaGen] Replace relative paths in *.gmfgen with platform:/plugin uris
Product: [Modeling] Papyrus Reporter: Tatiana Fesenko <tatiana.fesenko>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier, Patrick.Tessier
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tatiana Fesenko CLA 2010-08-04 10:41:04 EDT
GMFGen files for Papyrus diagrams use relative path to reference genmodels:
"../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel" 
"../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel". Note that both of models are located in plugins.
Because of it if the user's attempts to open a GMFGen model in SVN fail - EMF looks for the models using the relative paths, in CVN, and cannot find it. 
As a consequence, it's not possible to compare Papyrus gmfgen models using EMF Compare.
Use "platform:/plugin" uri instead, e.g. "platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel".
Comment 1 Tatiana Fesenko CLA 2010-08-04 10:48:26 EDT
Fixed for Class diagram
Comment 2 Camille Letavernier CLA 2013-03-22 13:33:41 EDT
The "../../.." URIs will come back after each save action. The replacement of relative URIs with platform:/ based URIs is the responsibility of the Editor, which is provided by GMF Tooling (i.e. specific Save Options to add in the resource)