Community
Participate
Working Groups
I20070208-0010. Bug 173397 lists a case where a client installed a drop target before ours. Currently we have no API from SWT to detect such a case (except catching SWTError). Of course we cannot catch the error for clients that install themselves after use, hence the best solution would be that SWT does not restrict the drag source and the drop target to be at most one. Other solution would be to allow clients to query whether a drag source and a drop target is already installed: Either: hasDropTarget() and hasDragSource() or: getDropTarget() and getDragSource() or (but a bit too low level in my opinion): DragSource.DRAGSOURCEID and DropTarget.DROPTARGETID This is something we should get for 3.3 so that we can make sure not to break clients. In the case of bug 173397 the editor can no longer be opened.
On the same page: it should also be possible to remove a registered drag source and drop target. See also bug 162192.
This bug is covered in 215388. *** This bug has been marked as a duplicate of bug 215388 ***