Import and traverse UML2 [message #626599] |
Wed, 21 May 2008 10:12 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi all,
i'm new to UML2 and EMF programming, but have to dive deeper into it. So
my first approach was to load an UML2 Use Case model (created with
Eclipse UML2.1 diagrams).
Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE; Map
m = reg.getExtensionToFactoryMap();
m.put("uml", UMLResource.Factory.INSTANCE);
ResourceSet resSet=new ResourceSetImpl();
Resource res = resSet.getResource(URI.createURI("file:///F:/TFH
Flo/SE/workspace/JET_1/model/bibO.uml"),true);
Therefore, I registeres the UML2Factory and the file extension as
mentioned above. That works fine.
But how to get access to the Use Cases i have modeled inside. Alle the
contents of the Resource are AnyTypeImpl-Objects?
Thx
tm
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds