Skip to main content

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);

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.
Previous Topic:[Announce] MDT UML2 2.2.0 I200803111920 is available
Next Topic:Re: UML to XMI export programmatically?
Goto Forum:

Current Time: Fri Aug 19 03:02:36 GMT 2022

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

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

Back to the top