|Applying UML Profile Programmatically [message #541252]
||Fri, 18 June 2010 18:51
Registered: June 2010
i'm developing an eclipse plugin and i'm trying to apply an alread defined profile to a use case model, but i don't know how to work.
According to http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html I could load the package with something like the code below:
org.eclipse.uml2.uml.Package package_ = null;
Resource resource = RESOURCE_SET.getResource(uri, true);
package_ = (org.eclipse.uml2.uml.Package) EcoreUtil
But, i am not understanding how to get Resource from ResourceSet. In the tutorial an instance of ResourceSet is created. I have created the profile with uml2tools and registered it in org.eclipse.uml2.uml.generated_package extension. So, how can I load an already defined Resource? I need to register it to ResourceSet object or is there another option?
thans in advance.
Powered by FUDForum
. Page generated in 0.08726 seconds