|
Re: defining model scope for XMI loader [message #1782757 is a reply to message #1782751] |
Thu, 01 March 2018 05:58 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
There is no such thing as a Model Scope. Relative references are resolved against the URI used to load the resource containing those references. So if you're having problems, most likely you didn't load the resource with an absolute URI. I.e., if this resource is in the workspace say in /project/folder/Foo.xmi, you should use platform:/resource/project/folder/Foo.xmi to load it and then the relative URI will resolve to platform:/resource/project/folder/Address.xmi, i.e., in the same folder as the referencing resource. If you're loading from the file system use URI.createFileURI(new File(...).getAbsolutePath()) to create the URI you use to load the resource. In general, you should always use an absolute URI to load a resource, i.e., platform:/..., file:/..., http://...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04620 seconds