Skip to main content



      Home
Home » Modeling » UML2 » Programmetic Create Connetor between Port
Programmetic Create Connetor between Port [message #590712] Mon, 26 February 2007 04:51
Eclipse UserFriend
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!
Previous Topic:Deffrence between lower and lowervalue of the association in uml2
Next Topic:Adding to DerivedEObjectEList gives UnsupportedOperationException, apparently new since EMF 2.3
Goto Forum:
  


Current Time: Tue Jul 08 20:33:05 EDT 2025

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

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

Back to the top