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: 601
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

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:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=403272

Hallvard
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: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hallvard,

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.

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


Current Time: Sat Dec 20 03:54:30 GMT 2014

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

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