I've spent a fair amount of time working on this, and haven't been able to get anything to work. I trying to make is so the user can simply click on the endpoint of a connector and drag it to another node, instead of having to select the connector and then drag. The best way I could come up with is to automatically select a connection when the mouse is over it, but still being new to GEF, I really have no idea how this would be done.
So, I worked on it some over the weekend and it's looking like the easiest way to do this is just to create endpoint editparts and attach them somehow to the ends of the connector. Any suggestions of how to accomplish this?
I dint get your question properly ...
but anyway i feel its something related to connection steps
Steps involved in creating a connection
1 selecting the connection from the palette ,
2 then followed by clicking on the source node and dragging till the target and
3 again clicking on it completes the connection ....
Instead of this you can achieve connection by drag source and drop on target ....
all you need to do is just override the method
@Override
public DragTracker getDragTracker(Request request) {
return new ConnectionDragCreationTool();
}
and install this policy in the source and target EditPart
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE,
new AppConnectionPolicy());
public class AppConnectionPolicy extends GraphicalNodeEditPolicy{