Community
Participate
Working Groups
The ResourceDragAdapterAssistant always initiates dragging of resources if a ResourceTransfer is a supported type of the drop target, even if no resource is selected. The drag data is set to an empty array of IResource. This is a problem when trying to support dragging a non-resource from the PE to the editor area, because the EditorAreaDropAdapter does accept ResourceTransfer. Adding another dragAssistant does not work, because drag assistants are not called in a particular order. See also CDT bug 194208.
Created attachment 112650 [details] Proposed fix This patch changes the behavior for the ResourceTransfer and FileTransfer cases to return false if the selection cannot be adapted to a resource. That way other drag assistants get a chance to handle this event.
Released slightly modified patch to HEAD 3.5M5
Thanks, Francis! Would you mind considering also bug 194209? This bug can have a huge performance impact with large workspaces.
Removing iplog+ from bug - this indicates an IP contribution in a comment rather than a patch. http://wiki.eclipse.org/Development_Resources/Automatic_IP_Log