Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336408 - [DND] Cannot drag and drop Views and Editors if mouse click held down
Summary: [DND] Cannot drag and drop Views and Editors if mouse click held down
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-04 20:31 EST by CLA
Modified: 2011-05-05 02:28 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CLA 2011-02-04 20:31:35 EST
Build Identifier: 3.7 I20110201-0800

Can no longer drag the icons on the perspective bar to re-arrange them. (Works in Eclipse 3.6, not 3.7)

Reproducible: Always
Comment 1 CLA 2011-02-04 20:58:09 EST
Well, actually you can drag and drop but the behaviour is different than in 3.6. In 3.7 if you click on an icon and hold for more than a second or so you cannot drag it. It seems you have to click and drag very quickly. Takes some practice.
Comment 2 CLA 2011-03-01 14:55:43 EST
I've edited the title of this bug to more accurately reflect the true (and critical) nature of this bug. This bug also affects dragging and dropping Views and Editors in Eclipse. If you click on a View or Editor's title bar, hold down the mouse for a second or so you cannot drag it.
Comment 3 Eric Moffatt CLA 2011-03-01 15:10:38 EST
I've tagged this for a look in M6.

Is the original behavior you described also present (i.e. do you have the same problems re-arranging the perspective buttons) ?
Comment 4 CLA 2011-03-01 15:24:58 EST
(In reply to comment #3)
> I've tagged this for a look in M6.
> 
> Is the original behavior you described also present (i.e. do you have the same
> problems re-arranging the perspective buttons) ?

Yes, also the perspective buttons.

Here's a quick steps to reproduce for a View:

1. Mac OS X Eclipse 3.7 Cocoa 
2. In Eclipse mouse click on the title bar of a View.
3. Hold mouse down for a second.
4. With mouse still held down, try to drag the View.

Here's a quick steps to reproduce for a Perspective bar button:

1. Mac OS X Eclipse 3.7 Cocoa 
2. In Eclipse mouse click on a button in the Perspective toolbar.
3. Hold mouse down for a second.
4. With mouse still held down, try to drag the toolbar button.

If, however, you click, and then drag very quickly without lingering on the mouse held down it will work.
Comment 5 Eric Moffatt CLA 2011-03-03 10:51:07 EST
This appears to be an SWT defect. Car just did the following test...

Install 3.6.2, verify that DnD works
Open a workspace containing the latest (3.7) SWT and run an inner
The DnD fails in the manner described...

Changing ownership to SWT (You may want to update the target milestone).
Comment 6 Silenio Quarti CLA 2011-03-03 14:18:44 EST
Fixed > 20110303.

Fix for bug#328396 caused this. SWT.DragDetect should fire when the timeout expires or when the user moves the mouse enough. The former was not true on cocoa and gtk.
Comment 7 CLA 2011-03-13 15:49:48 EDT
I tested this on Eclipse 3.7 M6, Cocoa 64-bit: behaviour is now as expected. Confirmed fixed. Many thanks.
Comment 8 Dani Megert CLA 2011-05-05 02:28:20 EDT
I'm setting the platform to 'All' as not only Mac OS X was affected and fixed.

NOTE: The fix caused a regression on GTK, see bug 344686.