Bug 2628 - DCR: provide command to close all editors except the active one (1GHDTGG)
Summary: DCR: provide command to close all editors except the active one (1GHDTGG)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows All
: P3 enhancement (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:40 EDT by Erich Gamma CLA
Modified: 2003-08-07 06:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2001-10-10 22:40:14 EDT
EG (24.07.2001 20:55:19)
	I often want to close all open editors with the exception of the one I'm currently
	working on. There is currently no way to do this efficiently.

NOTES:
Comment 1 Sebastian Davids CLA 2001-11-30 11:03:53 EST
One should be able to select which editors to choose.

Either 

a) "Close all" should be "Close all..." -- pops up a dialog (s. b.) regardless 
of dirty editors or not.
b) New menu item called "Close selected..." (one should be able to select 
several editors, i.e. their tabs, which one cannot do at the present time, for 
this menu item name) or "Close several..." which pops up a new dialog (s. b.).

I would prefer b).

The dialog should be similar to present "Close all"-dialog but with the 
following changes:

@@@@

"Close Resources?"

"Select the resources to close:"

List with checkbox items for all open editors/resources.

Button "Select All" Button "Deselect all"

Checkbox "Save resources before close."

Button "Yes" Button "No" Button "Cancel"

@@@@

In "Window/Preferences/Workbench" should be an option "Save all modified 
resources automatically prior to close"

@@@@

Sebastian Davids
Comment 2 Eduardo Pereira CLA 2001-12-03 15:20:55 EST
See bug 2661. 
We have added the "Switch Editor Dialog" in the Windows menu.
Any feedback is appreciated.
Comment 3 Eduardo Pereira CLA 2002-02-04 12:41:19 EST
See Window->"Switch to Editor" 
Comment 4 Erich Gamma CLA 2002-02-04 18:03:46 EST
This is definitly an improvement, but it is awkward having to manually select 
all the editors. I'd like to have a more direct way to do this action since it 
is a frequent one.

I suggest to add a Close All Except Active in the pop-up menu that appears in 
the editor's tabl.

Another improvement is to provide an option to close all editors except the 
pinned ones. I usualy carefully pin the editors in my "working set" there is no 
easy way to close all editors except the pinned ones. Notices there is no 
indicator in the Switch to Editor dialog for pinned editors.
Comment 5 Eduardo Pereira CLA 2002-02-04 19:35:57 EST
1) What about two buttons in the "Switch to Editor" dialog:
     a) Select All Except Active Editor;
     b) Select All Except Pinned Editors;
     c) Indicated pinned editors in the dialog

2) I am interested to know why you have to frequently close editors. One of 
idea of "editors reuse" is to minimize that. Have you tried changing the 
preference settings "number of editor opened before reusing"? Maybe we should 
change de default to 4 or 5.
Comment 6 Eduardo Pereira CLA 2002-03-21 12:26:08 EST
Added 2 buttons to the dialog:
 - Select all clean editors.
 - Invert selection.
Comment 7 Eduardo Pereira CLA 2002-03-25 11:23:16 EST
With the invertSelection button in the editors dialog, close all but active 
operation becomes simpler:
 i) Open the dialog (Ctrol+Shift+W)
 ii) Click invert selection
 iii) Click closed selected editors.
Comment 8 Sebastian Davids CLA 2003-08-07 06:42:41 EDT
It would be nice to have Erich's suggestion from #4 "Close All Except Active" also.