Bug 105556 - [OpenModes] [Viewers] Editor should get focus when file opened using double-click (regardless of open mode)
Summary: [OpenModes] [Viewers] Editor should get focus when file opened using double-c...
Status: RESOLVED DUPLICATE of bug 45186
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux-GTK
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, usability
Depends on:
Blocks:
 
Reported: 2005-07-29 03:37 EDT by arne anka CLA
Modified: 2008-05-08 03:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2005-07-29 03:37:02 EDT
opening a file from package explorer does not transfer the focus to the newly opened editor. 
one has explicitely click into the editor.
Comment 1 Dirk Baeumer CLA 2005-07-29 04:38:26 EDT
The behaviour depends on the Open mode:

- single click open mode: focus is not transferred
- double click open mode: focus is transferred

This is by design and I tested it under Windows XP and it works as expected.

Tom, can you please double check under Linux and if it works that way close the PR.
Comment 2 arne anka CLA 2005-07-29 05:08:18 EDT
tried, but even doubleclick does not transfer focus (maybe the second click is ignored already? 
is the desktopmanager involved or is it plain eclipse?).

> This is by design
what's the meaning behind that?
Comment 3 arne anka CLA 2005-07-29 05:12:45 EDT
pressing enter does not transfer the focus
pressing f3 does not
"rmc->open" does not
"rmc->open with->java editor" _does_
Comment 4 Tom Hofmann CLA 2005-09-09 04:17:37 EDT
Works as described in comment 1 (except for the plugin.xml editor which always
takes the focus itself).
Comment 5 Tom Hofmann CLA 2005-09-09 04:18:33 EDT
Closing as works for me - if you still see this (comment 3) please reopen with
more info about your window manager and exact steps to reproduce.
Comment 6 arne anka CLA 2005-09-09 07:11:02 EDT
> Works as described in comment 1
did you test in linux/gtk?
for me it still does not work.
kde 3.4.1, eclipse linux/gtk. both single click to open and double click to open for the desktop 
environment do solve the issue.

reproduction steps are easy: 
left click on an entry in the package-explorer. press arrow down, see the selection inside the 
package explorer go down.
left double click on an entry in the package-explorer. press arrow down, see the selection 
inside the package explorer go down.

the distinction between single click/double click behaviour seems at least for unices not usable 
-- traditionally unix-windowmanagers use single click where windows uses double click. seems 
to me to be a bug in the (at least) gtk-implementation.
Comment 7 Dirk Baeumer CLA 2005-09-09 10:08:49 EDT
The meaning behind is that if open mode is single click tranfering focus to the
editor would make it hard to select some elements and then open the context
menu. This behaviour should be consistent this way in Eclipse.

I retested it again under Linix/GTK and the behaviour is as described in comment
one. 

If you want to use Double Click for opening then you have to change the Open
mode under Preferences->General to Double click.

What can be considered a bug is the fact that when double clicking even when in
single click mode the editor should become focus. However the OpenListener
provided by JFace doesn't allow to detect this (e.g. the event doesn't have the
information whether the user did a double or single click).

Moving to Platform/UI to add this information to the OpenEvent so that viewers
could make use of it.
Comment 8 arne anka CLA 2005-09-09 10:32:45 EDT
well, yes. now i changed to "doubleclick" in preferences it's more like it.
Comment 9 Nick Edgar CLA 2005-09-09 12:06:54 EDT
Changing description to describe the actual problem.
Comment 10 Nick Edgar CLA 2006-03-15 11:20:15 EST
Reassigning bugs in component areas that are changing ownership.
Comment 11 Dani Megert CLA 2008-05-08 03:34:43 EDT

*** This bug has been marked as a duplicate of bug 45186 ***