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

Bug 2030

Summary: DCR: Please add a preference for 'single-click opens editor' (1GDQA1J)
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: UIAssignee: Eduardo Pereira <eduardo_pereira>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: daniel_megert, erich_gamma, n.a.edgar
Version: 2.0Keywords: usability
Target Milestone: 2.0 F2   
Hardware: All   
OS: All   
Whiteboard:

Description Carolyn MacLeod CLA 2001-10-10 22:24:56 EDT
Build 0.105.

In VAJ and VAME, selecting a compilation unit opens an editor.
For the user, this is just one click, or they can use arrow keys.

Currently in Eclipse the user has to double-click to open an editor.
I would really like a preference to enable the following behavior:
	- single-click (or 'selection') opens a temporary editor
		(which can be 'pinned' afterwards if desired)
	- double-click opens an 'already-pinned' editor

I think this behavior should occur when a compilation unit or any part of it
is selected (i.e. class in hierarchy, method, package & var decls, etc).
The behavior would ideally be consistent across all views, i.e. including
search, debugger, etc. as well as all java views, including compare.
So for example if the user expanded a tree in the packages view to see
a list of methods and then selected a method, the CU editor would open;
or if the user clicks once on a method in search, an editor opens, etc.

I understand that there will be times when an editor can take a while to open.
I am willing to put up with this because most of the time I will be opening
java files, and they come up fairly quickly.
Comment 1 Carolyn MacLeod CLA 2001-10-17 23:45:58 EDT
See also: http://dev.eclipse.org/bugs/show_bug.cgi?id=5063
Comment 2 DJ Houghton CLA 2001-10-29 17:46:41 EST
PRODUCT VERSION:
	Eclipse build 0.105

Comment 3 Carolyn MacLeod CLA 2001-11-01 19:44:37 EST
See also: http://dev.eclipse.org/bugs/show_bug.cgi?id=3494
Comment 4 Eduardo Pereira CLA 2002-04-17 14:55:15 EDT
Added 4 options in the "Working in Progress" preference page.
 1) Single click without timer:
    -> click opens the editor and key navigation does nothing
 2) File Explorer:
    -> click opens the editor and key navigation has a delay before opening it.
 3) Active desktop:
    -> click opens the editor, move changes selection after a delay and key 
navigation does nothing.
 4) Double click
    -> the default/current behavior

* For now only the Navigator is using the new API. All other views must be 
changed to use it as well.
* We may end up not supporting all options but they are there so we can test 
and see which one is better. 
* It may be interesting to move this support to swt/custom so that the platform 
implementation could be used on Windows and emulated in other plaftorms.
* API was added to jface.util so it can be used on views that don't use JFace 
viewers. And API addOpenListener was added to JFace viewers.
Comment 5 Nick Edgar CLA 2002-05-17 22:16:09 EDT
Can this be closed?
Comment 6 Eduardo Pereira CLA 2002-05-28 13:32:21 EDT
Closing it. The preferece was added. And the SDK are already using it.