Programmetic Create Connetor between Port [message #590712] |
Mon, 26 February 2007 04:51 |
Eclipse User |
|
|
|
Hi, Thanks for help me gettting started with the uml2.
Now I meet some problem to create two port and create a connector
linking them.
Suppose I have myport1 owned by myClass1 and myPort2 Owned by myClass2,
then I create a connector by :
org.eclipse.uml2.uml.Port myPort1=UMLFactory.eINSTANCE.createPort();
org.eclipse.uml2.uml.Port myPort2=UMLFactory.eINSTANCE.createPort();
Connector myConnector = UMLFactory.eINSTANCE.createConnector();
Now I would create the two ends for myConnector, if I use
"myConnector.createEnd", how could I ensure that these two ends are
attached to "myPort1" and "myPort2", respectively?
Thanks a lot!
|
|
|
Powered by
FUDForum. Page generated in 0.02811 seconds