Bug 37298

Summary: [DND] Drag and Drop doesn't work on Linux Motif
Product: [Eclipse Project] Platform Reporter: Steven R. Shaw <steveshaw>
Component: UIAssignee: Knut Radloff <knut_radloff>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P2    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-Motif   
Whiteboard:

Description Steven R. Shaw CLA 2003-05-06 16:52:30 EDT
Steps:
- Create a Java project.
- Create Class1 in the default package
- Create a new package "com.company"
- Try to drag Class1 into the package from the package explorer

Result:
- Cursor doesn't change and nothing happens.

Expected:
- Cursor should change to a + icon and drag operation should complete as in 
Windows and GTK.
Comment 1 Debbie Wilson CLA 2003-05-07 14:52:57 EDT
Am able to reproduce on Linux/Motif with I20030506.  I was able to reproduce
this using the steps provided.  I also created a simple project:
abc (Project)
- folder1 (Folder)
-- file1 (a flat text file - put some text like "Hello World" in here)
- folder2 (Folder)

In Package Explorer view select 'file1' and try to copy/move it to folder2. 
Nothing happens.
Comment 2 Nick Edgar CLA 2003-05-12 22:57:43 EDT
Please investigate a fix for 2.1.1.
Comment 3 Knut Radloff CLA 2003-05-13 11:01:34 EDT
How do you initiate the drag? On Motif, drag and drop uses the middle mouse 
button.
This works for me. Note also that you have to drop exactly on the tree item. It 
is not sufficient to see the drop feedback and the desired tree item selected. 
Dropping outside the tree item will cancel the drop. I believe this is a 
Motif "feature".

I did notice that the Package Explorer shows the same drop feedback for copy 
and move on Motif. The Navigator shows stacked "pages of paper" for copy and 
just the regular "running man" icon for move. Note sure what the Package 
Explorer does different here. Copy drop feedback works fine on other platforms.
Comment 4 Knut Radloff CLA 2003-05-13 11:07:18 EDT
Correction: Package Explorer does show the proper copy drop feedback on my 
machine.
Comment 5 Steven R. Shaw CLA 2003-05-13 11:53:00 EDT
Ok - I was using the left mouse button which seems to be incorrect on Motif.  
You can resolve the defect as "Invalid"...
Comment 6 Knut Radloff CLA 2003-05-13 11:59:08 EDT
In 2.0 we were explicitly testing for a left mouse button click. In 2.1 we 
switched to using the platform default.