Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » bug in DragEditPartsTracker?
bug in DragEditPartsTracker? [message #190461] Wed, 03 August 2005 23:45 Go to next message
Thuc is currently offline ThucFriend
Messages: 9
Registered: July 2009
Junior Member
I stumbled across what looks like a problem in DragEditPartsTracker. It
only happens when the grid is visible.

To reproduce the problem in the Logic example, modify
LogicXYLayoutEditPolicy.createChildEditPolicy(). Right after the policy
is created, add the line
policy.setDragAllowed(false);

Now try dragging an element in the Logic editor; you should encounter a
NullPointerEx in DragEditPartsTracker.updateTargetRequest().

With the SnapToHelper enabled, the drag tracker tries to use the
variable 'compoundSrcRect'. This variable is set based on any selected
editparts that understand the move request. However, the
setDragAllowed(false) call means that the editpolicy doesn't understand
the request, so the variable in question is never set.
Re: bug in DragEditPartsTracker? [message #190546 is a reply to message #190461] Thu, 04 August 2005 15:58 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Seems like a genuine bug. Please open a bug report (and attach a patch if
you'd like to contribute to GEF).

"Thuc" <tqnguyen@ca.ibm.com> wrote in message
news:dcrku6$rtd$1@news.eclipse.org...
> I stumbled across what looks like a problem in DragEditPartsTracker. It
> only happens when the grid is visible.
>
> To reproduce the problem in the Logic example, modify
> LogicXYLayoutEditPolicy.createChildEditPolicy(). Right after the policy
> is created, add the line
> policy.setDragAllowed(false);
>
> Now try dragging an element in the Logic editor; you should encounter a
> NullPointerEx in DragEditPartsTracker.updateTargetRequest().
>
> With the SnapToHelper enabled, the drag tracker tries to use the
> variable 'compoundSrcRect'. This variable is set based on any selected
> editparts that understand the move request. However, the
> setDragAllowed(false) call means that the editpolicy doesn't understand
> the request, so the variable in question is never set.
Previous Topic:Adding ruler to Canvas!!!
Next Topic:Problem with command line update manager
Goto Forum:
  


Current Time: Tue Dec 03 09:42:55 GMT 2024

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

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

Back to the top