Accessing UML2 Sequence Diagrams from UmlPackage

Accessing UML2 Sequence Diagrams from UmlPackage

Postby Guest » Wed Feb 01, 2006 11:53 am

Hi,
I`ve got little problems accessing UML2 Sequence Diagramms from Poseidon.
I have already written a parser for these using JMI, so I only need to receive the UmlPackage from Poseidon for integrating the parser into a plugin.
Now I`ve got the following problem:
If I try to access the UmlPackage I only get the UML1 Version, not the methods of UML2.
I tried it with

UmlPackage umlPackage = (UmlPackage)PoseidonProjectConnector.getCurrentProject().getUml1SmFactory();

but this method just access the UML1Package.
The needed method is umlPackage.getInteractions2(), but it isn`t contained.
I`ve got no idea how to get new UmlPackage(this one which contains UML1 and 2).
Can somebody give me a hint?
Greetings
Tarkan
Guest
 

Re: Accessing UML2 Sequence Diagrams from UmlPackage

Postby Guest » Thu Feb 02, 2006 3:13 pm

If I can`t access the UmlPackage, is it possible to get Interactions2Package, maybe via the DiagramInterchange?
Greets
Tarkan
Guest
 

Re: Accessing UML2 Sequence Diagrams from UmlPackage

Postby [gw] Stefan Mueller » Thu Feb 09, 2006 2:49 pm

Hi,

please use
umlFactory = (Uml1SmFactoryGen)(project.getUml1SmFactory());
interactionPackge = umlFactory.getInteractions2Package();

Kind regards,

Stefan
Stefan Mueller [Gentleware]
[gw] Stefan Mueller
 
Posts: 374
Joined: Thu Jul 03, 2003 11:24 am


Return to Plug-Ins

Who is online

Users browsing this forum: No registered users and 2 guests

cron