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: 620
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: 1735
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 Oct 05 19:32:39 GMT 2015

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

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