|Re: Add GenModel option for platform scheme-aware URIs in XXXEditor.doSave() [message #1388144 is a reply to message #1387859]
||Thu, 26 June 2014 03:43
| Ed Merks
Registered: July 2009
In your GenPackage, you can set the Resource Type to, for example, XMI",
and then a resource factory will be generated and registered. In there
you can control the options specifically designed for model's
resources. Set a breakpoint in your factor to be sure it's being used,
and set a breakpoint in your XMI URLHandler implementation to ensure
it's getting called. Note that the implementation you say your using
does not do what you stated you want, this implementation ensures that
you won't get relative platforms between platform:/resource and
platform:/plugin URIs, so you'll need to implement one yourself.
On 25/06/2014 8:09 PM, Fazi G wrote:
> I have the same problem in saving my EMF models. More specifically,
> when saving my model files, which contain references to other
> resources, I want to have only platform resource URIs and not relative
> 1. I have added the saveOptions to my XXXEditor.doSave(), but nothing
> is still changed and I still have the relative URIs in my model file.
> 2. About Ed's reply, what should I add to the resource factory? And
> how can I generate one?
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.02673 seconds