Bug 37595 - [DND] [EditorMgmt] [ViewMgmt] [Perspectives] Drag hover over an editor/view/part tab should activate it
Summary: [DND] [EditorMgmt] [ViewMgmt] [Perspectives] Drag hover over an editor/view/p...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement with 9 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 54236 90807 162765 (view as bug list)
Depends on:
Blocks: 44843
  Show dependency tree
 
Reported: 2003-05-14 11:20 EDT by Nick Edgar CLA
Modified: 2017-06-01 11:13 EDT (History)
13 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2003-05-14 11:20:29 EDT
R2.1

Bug 37463 describes a scenario where editor linking gets in the way of dragging 
a file from the Navigator into the contents of the editor for a different file.
While this will be fixed in the Navigator, we should also allow an editor to be 
activated during a drag.

Hovering over an editor tab during a drag should activate the editor.
Comment 1 Knut Radloff CLA 2003-09-02 17:13:30 EDT
Reassigning to Nick since he is taking ownership of DND.
Comment 2 Douglas Pollock CLA 2004-09-28 11:13:25 EDT
*** Bug 54236 has been marked as a duplicate of this bug. ***
Comment 3 Eddie Galvez CLA 2005-06-22 10:59:59 EDT
I'd like to add my vote to see this happen -- 1) because our RCP app also 
suffers from the link-view-with-editor feature interfering at times, and 2) 
because I feel I'm very used to doing this in DND with windows.
Comment 4 Nick Edgar CLA 2005-06-22 11:05:07 EDT
Eddie: note that you can actually votes for bugs.  See the "Vote for this bug"
link above.

Should also do this for fast views and perspective buttons/chevron.
Comment 5 Eddie Galvez CLA 2005-06-22 11:24:21 EDT
I didn't think you guys were using the vote feature in bugzilla :-)
Comment 6 Nick Edgar CLA 2005-06-22 11:39:17 EDT
We do actually use and look at the votes.  Bugs with more votes do get more
attention, it just sometimes takes a while, and the attention given may not
always be the attention wanted.
Comment 7 Nick Edgar CLA 2006-03-15 11:50:25 EST
Reassigning bugs in component areas that are changing ownership.
Comment 8 Steve Gevers CLA 2006-03-15 15:30:28 EST
Bug #124363 is another reason why this feature would be useful.  The basic desire is to drag an item from one editor to another.  This functionality may be important to apply to CTabFolder in general.  If the editor in question is a multi-page editor, simpling making the editor active may not be enough.  The user may need to hover over one of the pages in the active editor.
Comment 9 Nick Edgar CLA 2006-03-15 16:54:00 EST
Yes, I had a case just yesterday where I wanted to drag something from one view to another, but could not because they were in the same folder.  Should also be able to switch perspectives by hovering over a perspective button.  The drop-down chervrons for the editor list and view folders should also be sensitive.

Having general support for this in CTabFolder may be helpful.
Comment 10 Eric Moffatt CLA 2007-06-21 11:15:44 EDT
If we do this it has to be part of a larger 'context oriented actviation on hover' (i.e. switch perspectives?, activate different tabs on multi-page editors...).
Comment 11 Laurent Petit CLA 2009-01-23 03:54:46 EST
Hello, 

There's also the need, in my company to be able to activate the editor when dragging over its tab.
The need to have the more general solution (for views, perspectives, ...) is not ours currently. But I certainly understand that a general solution would be more attractive, in a perfect world.

Could you tell me how you intend to deal with this bug ?

On eclipse.platform newsgroup I was told I could help by submitting a patch.

If I could, I would certainly provide it.

Alas, I don't know how to solve the specific case, if not the general one.

Maybe, if you can give some directions, I could investigate further.

Sincerely,

-- 
Laurent Petit
Comment 12 Eric Moffatt CLA 2009-01-26 13:27:15 EST
The basic issue is that we use the native platform's DnD mechanisms and most of them 'insulate' the environment from the various events (i.e. the DragSource and DropTarget are the -only- receivers of events on at least some platforms (i.e. the 'normal' MouseMove...events are eaten by the DnD subsystem). Note that the auto-expand and scroll are available because the platform has implemented the behavior specifically for DnD.

This makes it difficult to implement. We might possibly be able to install a mouse 'hook' (i.e. a listener on the Display itself) on a DragStart to manage this but I haven't investigated this deep enough to actually know if that'll do the trick. We'd then use this mechanism to send specialized events to the Workbench so that it could work its magic (switching tabs...).

I've been looking at WoW's DnD and I actually like its way of doing this, the gesture is not Down->Drag->Release to drop...when a drag 'starts' the elements are attached onto the cursor 'permanently'; you can then just use the mouse normally to navigate clicking/dragging scrollbars, tab items...the drop only happens on a mouse up in the valid drop location (or ESC). Unfortunately I don't think we can do this using the platform mechanisms...but I'm considering it for e4's View/Editor DnD (which doesn't use the platform's code because things like the CTabFolder don't implement DragStart...



Comment 13 Boris Bokowski CLA 2009-11-11 17:31:03 EST
Remy is now responsible for watching the [ViewMgmt] category.
Comment 14 Markus Keller CLA 2013-06-13 09:16:32 EDT
*** Bug 162765 has been marked as a duplicate of this bug. ***
Comment 15 Markus Keller CLA 2013-06-13 09:17:00 EDT
*** Bug 90807 has been marked as a duplicate of this bug. ***