[oclinecore] import statement gets rewritten [message #1733733] |
Tue, 31 May 2016 05:57  |
Eclipse User |
|
|
|
Hi,
I have a couple of meta models in different projects that depend on each other. I edit them using the OCLinEcore editor. Consequently, they contain an import statement like:
import sys : '../../com.wilbert.mm/model/sys.ecore#/' ;
I encountered some errors when testing my application with exceptions like:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: ..\..\com.wilbert.mm\model\expr.ecore (The system cannot find the path specified)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:220)
at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.loadImports(Ecore2AS.java:620)
at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.loadImports(Ecore2AS.java:583)
at org.eclipse.ocl.pivot.internal.ecore.es2as.Ecore2AS.getASModel(Ecore2AS.java:316)
When I change the import line in something like:
import sys : 'platform:/plugin/com.wilbert.mm/model/sys.ecore#/' ;
Then even after save and reloading, the platform:/plugin URI is replaced by the URI with the relative path.
Is there a reason for this or should I consider this a bug? (If needed I can provide a 'reproduce' case.)
Greetings,
Wilbert.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03867 seconds