Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Navigating on UML metamodel
Navigating on UML metamodel [message #516066] Mon, 22 February 2010 16:15 Go to next message
CaribeanAlien is currently offline CaribeanAlienFriend
Messages: 15
Registered: February 2010
Junior Member
Hi,

I would like to create a standalone program able to display the list of elements available inside of the UML metamodel.
To do this, I've tried to register into the resourceSet the path to the UML jar (org.eclipse.uml2.uml.resources_2.2.0.v200805131030.jar), as shown in the FAQ.
Then, my thought was to access to the resource representing the UML Metamodel :
Resource res = _resourceSet.getResource(URI.createURI(UMLResource.UML_METAM ODEL_URI), true);
and to navigate over it.

I didn't get error, but unexpected results. When I display elements name, It seems to be all the same. A lot of MetaElement, ...
But no access to the real name! It seems to be a real mess. Does anyone has an idea?

here is the test code I'm working on : http://www.pastebin.com/f44dc1608

I'm currently waiting for the EMF book, hoping this to help me. Thanks in advance for any help!
Re: Navigating on UML metamodel [message #516092 is a reply to message #516066] Mon, 22 February 2010 18:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
I think it's best to ask about UML specific details on the UML2
newsgroup, which I've added to the "to" list of the reply, so no need to
repost.



CaribeanAlien wrote:
> Hi,
>
> I would like to create a standalone program able to display the list
> of elements available inside of the UML metamodel. To do this, I've
> tried to register into the resourceSet the path to the UML jar
> (org.eclipse.uml2.uml.resources_2.2.0.v200805131030.jar), as shown in
> the FAQ. Then, my thought was to access to the resource representing
> the UML Metamodel :
> Resource res =
> _resourceSet.getResource(URI.createURI(UMLResource.UML_METAM
> ODEL_URI), true);
> and to navigate over it.
>
> I didn't get error, but unexpected results. When I display elements
> name, It seems to be all the same. A lot of MetaElement, ... But no
> access to the real name! It seems to be a real mess. Does anyone has
> an idea?
> here is the test code I'm working on : http://www.pastebin.com/f44dc1608
>
> I'm currently waiting for the EMF book, hoping this to help me. Thanks
> in advance for any help!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] custom EDataTypes
Next Topic:XML text
Goto Forum:
  


Current Time: Thu Apr 25 09:50:13 GMT 2024

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

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

Back to the top