Bug 161651 - [DND] official support for drop target event redirection
Summary: [DND] official support for drop target event redirection
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2.1   Edit
Hardware: All Windows XP
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact: Kevin Barnes CLA
URL:
Whiteboard: stalebug
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2006-10-19 16:54 EDT by Andrew Bachmann CLA
Modified: 2020-07-24 13:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bachmann CLA 2006-10-19 16:54:00 EDT
We have a Tree that is the target for a drop event.  Sometimes the users drop into the rows at the bottom of the tree.  In this case, we receive a DropTargetEvent event where the event.item is null.

While the user is mousing over the tree we are trying to provide feedback for the drop.  When the user drops into the rows at the bottom of the tree, we will insert at the end of the tree, so we would like to show insert feedback there while the user mouses over it.  Setting the feedback to DND.FEEDBACK_INSERT_AFTER doesn't work in this situation.

We found a workaround which is to set the event.x and event.y to something within the bounds of the last item.  This causes the feedback to display appropriately.  However, this violates the documentation in DropTargetListener.dragOver, which specifies that x and y are fields for reading only.  Despite the documentation, this works on all platforms we tested. (Mac, Linux, Windows)  We also set the event.item to be the last item in our tree, but this doesn't seem to affect the feedback one way or the other.

We request that support for this existing behavior be documented in DropTargetListener.  (use of x and y for writing)
Comment 1 Leo Ufimtsev CLA 2017-08-03 12:31:32 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 2 Eclipse Genie CLA 2020-07-24 13:55:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.