Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » The location isn't set for DoubleClickFeatures
The location isn't set for DoubleClickFeatures [message #1018463] Wed, 13 March 2013 21:38 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 662
Registered: July 2009
Location: Trondheim, Norway
Senior Member

I guess the titles says it all: A DoubleClickFeature receives a
DoubleClickContext object with x and y fields, but these are not set to
where the user clicked. The fix to the performRequest method in
ShapeEditPart and ConnectionEditpart is trivial:

if (request instanceof LocationRequest) {
Point location = ((LocationRequest) request).getLocation();
dcc.setLocation(location.x, location.y);

I have added the following ticket:

Re: The location isn't set for DoubleClickFeatures [message #1020622 is a reply to message #1018463] Mon, 18 March 2013 15:25 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1894
Registered: July 2009
Location: Walldorf, Germany
Senior Member

thanks for pointing this out and also providing the solution.

Could you please add that coding to the bug? Reason is that we need every
code contribution (even such small ones) correctly marked for IP reasons and
this is only possible either by Gerrit and Bugzilla.

Previous Topic:Loading an existing model to a Graphiti Editor
Next Topic:Manhatten Connection overlaid
Goto Forum:

Current Time: Mon Jun 18 19:42:52 GMT 2018

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

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

Back to the top