Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection
Connection [message #175050] Sat, 01 March 2008 19:53
Eclipse UserFriend
Originally posted by: surayya.daimi.au.dk

Hi
I don't know how can CreateConnection command know what ports(anchors)
on rectangle figure a user chose to create a connection

In Connection Create Command exactly in doDefaultElementCreation (...){

Connection newElement = ExecutionFactory.eINSTANCE.createConnection(
source, source.getOutputValues().get(0), target,
target.getInputValues().get(0) );

.....
}

Forexample i can draw a connection between two nodes source and target
those nodes have a list of ports source.getOutputValues() and
target.getInputValues() but a conneciton is made only between two
elements in the list of ports.


Right now i can make connection statically only between two anchors get(0)

Question How can I know from ConnectionCreateCommand what ports user
chose to make a connection between?

Best regards Surayya
Previous Topic:Anchor Points
Next Topic:Connecting objects placed inside 2 Compartments
Goto Forum:
  


Current Time: Fri Apr 26 08:14:02 GMT 2024

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

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

Back to the top