Platform resource set/get [message #468935] |
Thu, 25 January 2007 03:39  |
Eclipse User |
|
|
|
Originally posted by: shahar.maoz.weizmann.ac.il
Hi,
We are creating uml models using RSA 7.0.
When applying a profile to a model, after exporting to uml, the profile is
reffered in the XMI as platform:/resource...
When trying to load the exported model in a stand alone app, our code
cannot find the profile. The "standard" profiles are recognized since we
"register" the resources jar.
How can we register "platform:/resource"? What is the right approach and
API to handle this?
Many thanks,
S
|
|
|
|
|
|
Re: Platform resource set/get [message #573971 is a reply to message #468935] |
Thu, 25 January 2007 09:32  |
Eclipse User |
|
|
|
Shahar,
One approach would be to add an entry in the URI map (as you have for
pathmaps) that maps "platform:/resource/" to the location of your
"workspace". The same can be done for "platform:/plugin/" URIs (or any URI
for that matter...).
Kenn
"Shahar" <shahar.maoz@weizmann.ac.il> wrote in message
news:d9832a502770d729129f4d469860d807$1@www.eclipse.org...
> Hi,
>
> We are creating uml models using RSA 7.0.
> When applying a profile to a model, after exporting to uml, the profile is
> reffered in the XMI as platform:/resource...
>
> When trying to load the exported model in a stand alone app, our code
> cannot find the profile. The "standard" profiles are recognized since we
> "register" the resources jar.
>
> How can we register "platform:/resource"? What is the right approach and
> API to handle this?
>
> Many thanks,
> S
|
|
|
Re: Platform resource set/get [message #574013 is a reply to message #468938] |
Thu, 25 January 2007 09:58  |
Eclipse User |
|
|
|
Many thanks.
Is there any example available of doing exactly that for platform resource
programmatically? Also, what happens when the code runs as a stand alone
app outside the eclipse environment?
Thanks,
Shahar
|
|
|
|
Powered by
FUDForum. Page generated in 0.06797 seconds