Add a bendpoint on doubleclick [message #186190] |
Sun, 11 May 2008 12:50 |
Eclipse User |
|
|
|
Originally posted by: surayya.daimi.au.dk
I am trying to add a bendpoint on a connection when double clicking on
the connection. ConnectionEditPart installs a ConnectionBendpointEditPolicy
/**
* Returns the appropriate Command for the request type given. Handles
* creating, moving and deleting bendpoints. The actual creation of the
* command is taken care of by subclasses implementing the appropriate
* methods.
*
* @see #getCreateBendpointCommand(BendpointRequest)
* @see #getMoveBendpointCommand(BendpointRequest)
* @see #getDeleteBendpointCommand(BendpointRequest)
*/
public Command getCommand(Request request) {
if (RequestConstants.REQ_SET_ALL_BENDPOINT.equals(request.getTy pe()))
return getSetBendpointCommand((SetAllBendpointRequest)request);
return super.getCommand(request);
}
And i tried making a subclass implementing the getCreateBendpointCommand()
I don't know how i can translate a double click event into a Request.
Can anyone tell me what i should do to make my connection add bendpoints
on double click ?
Best Regards Surayya
|
|
|
Powered by
FUDForum. Page generated in 0.48570 seconds