Get loaded resource from element [message #1016688] |
Thu, 07 March 2013 06:12  |
Eclipse User |
|
|
|
Hi,
If you load resource unto an element, is it then possible to get that information programmatically?
I currently have a model element that I've used "Load resource" on, and when I've loaded the model element in the code, I would like to get that information as well.
I hope this is clear enough, but if any more information is needed, I'll gladly provide that.
Thanks in advance,
Johan
|
|
|
|
Re: Get loaded resource from element [message #1017658 is a reply to message #1016792] |
Tue, 12 March 2013 05:27  |
Eclipse User |
|
|
|
Hi Camille,
Thanks for the help! But for some reason i can't seem to find the necessary information in the ResourceSet object...
I've tried to use getAllContents() as well as getResources() and traverse them and use GetURI() on the resources, without any luck so far.
So I'm wondering if you or someone else could help me in the correct direction.
Another thing I just though about, when I'm loading the resource unto the element, I'm not able to save the papyrus project afterwards without doing some other change as well, so could this have something to do with it, if it's not getting loaded correctly unto the element or if I'm doing something wrong.
Regards,
Johan
|
|
|
Powered by
FUDForum. Page generated in 0.03492 seconds