|
Re: bug in DragEditPartsTracker? [message #190546 is a reply to message #190461] |
Thu, 04 August 2005 15:58 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03953 seconds