Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Import and traverse UML2
Import and traverse UML2 [message #477417] Wed, 21 May 2008 10:12 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
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
Re: Import and traverse UML2 [message #477422 is a reply to message #477417] Wed, 21 May 2008 16:31 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Timothy Marc wrote:

> But how to get access to the Use Cases i have modeled inside. Alle the
> contents of the Resource are AnyTypeImpl-Objects?

Did you try to simply cast the contents to what you expect?
Re: Import and traverse UML2 [message #477424 is a reply to message #477422] Thu, 22 May 2008 10:14 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

it works as expected now. I've forget to include the UML.jar for
standalone application. Sorry for this :)

-- tm

Felix Dorner schrieb:
> Timothy Marc wrote:
>
>> But how to get access to the Use Cases i have modeled inside. Alle the
>> contents of the Resource are AnyTypeImpl-Objects?
>
> Did you try to simply cast the contents to what you expect?
Re: Import and traverse UML2 [message #626604 is a reply to message #477417] Wed, 21 May 2008 16:31 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Timothy Marc wrote:

> But how to get access to the Use Cases i have modeled inside. Alle the
> contents of the Resource are AnyTypeImpl-Objects?

Did you try to simply cast the contents to what you expect?
Re: Import and traverse UML2 [message #626606 is a reply to message #477422] Thu, 22 May 2008 10:14 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

it works as expected now. I've forget to include the UML.jar for
standalone application. Sorry for this :)

-- tm

Felix Dorner schrieb:
> Timothy Marc wrote:
>
>> But how to get access to the Use Cases i have modeled inside. Alle the
>> contents of the Resource are AnyTypeImpl-Objects?
>
> Did you try to simply cast the contents to what you expect?
Previous Topic:Re: provide a model with a plugin
Next Topic:[Announce] MDT UML2 2.2.0RC1 is available
Goto Forum:
  


Current Time: Thu Apr 18 00:56:08 GMT 2024

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

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

Back to the top