Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add a bendpoint on doubleclick
Add a bendpoint on doubleclick [message #186190] Sun, 11 May 2008 12:50
Eclipse UserFriend
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
Previous Topic:problem draw node
Next Topic:Problems with installing GMF 2.1.0M7
Goto Forum:
  


Current Time: Thu Sep 19 03:23:24 GMT 2024

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

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

Back to the top