Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to setSource&setTarget for ControlFlow in Activity??
how to setSource&setTarget for ControlFlow in Activity?? [message #626199] Wed, 12 March 2008 03:23
xiaoqiang is currently offline xiaoqiangFriend
Messages: 20
Registered: July 2009
Junior Member
Hi all,
I am creating a ControlFlow in Activity Diagram programmatically,
the codes are:
ActionModel am1=new ActionModel();
ActionModel am2=new ActionModel();
org.eclipse.uml2.uml.ControlFlow controlFlow=(ControlFlow)
activity.createEdge(name, UMLPackage.Literals.CONTROL_FLOW);
controlFlow.setSource(am1);
controlFlow.setTarget(am2);

But,the code can't run successfully.I am not very familiar with the UML2
API,so I want the correct code.

Thank you very much! I am appreciated your reply.
-xiaoqiang
Previous Topic:[Announce] MDT UML2 2.2.0 I200803111920 is available
Next Topic:Re: UML to XMI export programmatically?
Goto Forum:
  


Current Time: Mon Dec 22 22:16:03 GMT 2014

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

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