Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Platform resource set/get
Platform resource set/get [message #468935] Thu, 25 January 2007 08:39 Go to next message
Eclipse UserFriend
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 #468938 is a reply to message #468935] Thu, 25 January 2007 14:32 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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 #468942 is a reply to message #468938] Thu, 25 January 2007 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shahar.maoz.weizmann.ac.il

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
Re: Platform resource set/get [message #469703 is a reply to message #468942] Sun, 28 January 2007 03:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Shahar,

Have a look at the migration document for an example of loading models with
a stand alone application.
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html

Regards,

- James.


"Shahar" <shahar.maoz@weizmann.ac.il> wrote in message
news:4953552a35d0638cc8b3147661dff614$1@www.eclipse.org...
> 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
>
Re: Platform resource set/get [message #573971 is a reply to message #468935] Thu, 25 January 2007 14:32 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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 14:58 Go to previous message
SM is currently offline SMFriend
Messages: 10
Registered: October 2009
Junior Member
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
Re: Platform resource set/get [message #576340 is a reply to message #468942] Sun, 28 January 2007 03:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Shahar,

Have a look at the migration document for an example of loading models with
a stand alone application.
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html

Regards,

- James.


"Shahar" <shahar.maoz@weizmann.ac.il> wrote in message
news:4953552a35d0638cc8b3147661dff614$1@www.eclipse.org...
> 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
>
Previous Topic:Re: Problem using UML Genmodel
Next Topic:Execution Occurrence linking to Lifeline
Goto Forum:
  


Current Time: Sat Aug 20 03:37:08 GMT 2022

Powered by FUDForum. Page generated in 0.01431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top