Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 394412

Summary: SWT crashes on Drag&Drop
Product: [Modeling] ECP Reporter: Tobias Verhoeven <t.s.verhoeven>
Component: NavigatorAssignee: Tobias Verhoeven <t.s.verhoeven>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: 1.0.0RC1   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Dnd-patch eneufeld: iplog+

Description Tobias Verhoeven CLA 2012-11-15 12:53:01 EST
When trying to use drag&drop on any element of the Navigator the whole application freezes while causing a CPU-load of 100%. This problem occurs using OSX Mountain Lion.
Comment 1 Tobias Verhoeven CLA 2012-11-28 12:39:17 EST
class: ModelExplorerDropAdapter, method: dragOver(DropTargetEvent event) -
source = getDragSource(event); returns null though it returns the right object in windows.

method:drop(final DropTargetEvent event) - 
source = getDragSource(event); however returns the correct object.
Comment 2 Tobias Verhoeven CLA 2012-12-06 06:12:33 EST
Created attachment 224362 [details]
Dnd-patch


In case the sourceObject of an event is null the object is retrieved directly from the viewer.


I hereby confirm that the code of the patch/enhancement was written entirely on my own and I agree to contribute the code to Eclipse under the terms of the EPL.

Tobias Verhoeven