Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Programmetic Create Connetor between Port
Programmetic Create Connetor between Port [message #590712] Mon, 26 February 2007 09:51
Jerry is currently offline JerryFriend
Messages: 32
Registered: July 2009
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: Sat Apr 04 13:20:10 GMT 2020

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

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

Back to the top