Connection [message #175050] |
Sat, 01 March 2008 19:53 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02983 seconds