Bug 13195 - [Editor Mgmt] close all editors but the selected one
Summary: [Editor Mgmt] close all editors but the selected one
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Michael Van Meekeren CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
: 30874 32094 50376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-10 06:42 EDT by Adam Kiezun CLA
Modified: 2004-02-16 15:54 EST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-04-10 06:42:30 EDT
there should be an option to close all editors except for the one that is 
currently selected (a context menu on the tab maybe (?))

otherwise, this (quite common, because you often end up with too many
and want to say: 'just keep this one open, close everything else') operation 
requires me to actually reopen the editor i want to keep open
Comment 1 Nick Edgar CLA 2002-04-10 09:14:13 EDT
We are considering added a "Close All Saved" action, which would close all 
editors with no unsaved changes.
Would this suffice, or do you think it's important to have be able to close all 
but current even if there are no changes?
Comment 2 Adam Kiezun CLA 2002-04-10 09:39:01 EDT
i have an old habit of saving editors every 20 seconds - literally, 
after i'm done typing a unit of text, i stop and hit ctlr+s automatically

so, most of the time my editors are saved
'close all but current' would be better for users like me

(otherwise we (people who work like that) would have to resort to tricks like 
putting bogus empty spaces to save the editors - every now and then we would 
forget and loose out context again)
Comment 3 Nick Edgar CLA 2002-04-10 09:49:25 EDT
Also, using the dirty editor workaround isn't great because undo doesn't clear 
the dirty flag (it should).
Comment 4 Andrew Irvine CLA 2002-12-13 10:21:47 EST
Eclipse 20021213

Using either Editors View (Window>Show views>other>basic>Editors) or the editor 
pop-down (Window>Preferences>Workbench>Editors>Show Editors pop-up) you can 
invert selection with the menu presented when right clicking, then close those 
editors.  You can also access the pop-up via ctrl-shift-w if you don't want to 
take up the realestate on the tab folder.

If you are using R2.0, or R2.1 prior to M3, ctrl-shift-w opens a dialog with 
the same functionality.
Comment 5 Erich Gamma CLA 2002-12-18 08:48:30 EST
I'm sorry to reopen this one but I've tried current support for closing all 
editors except the selected one. It is too cumbersome and I agree with Adam 
that close all except the current one is common.

1) drop down menu
2) bring up pop-up menu of the drop down
3) select invert selection in the pop-up
4) bring up the pop-up menu of the drop down
5) select close
This are too many steps for a short cut action. Given that there is now also 
Pin in the Tab menu, why isn't the "close all except active" not in this menu?
This means I need 4 gestures to get at my goal
Comment 6 Ed Burnette CLA 2003-01-30 13:36:44 EST
I came in to request this feature but found it's already here so I'll just add 
my name to it. Phoenix is another program that uses tabs that has a 'close 
tab' and 'close other tabs' menu which is fairly handy.
Comment 7 Adam Kiezun CLA 2003-02-04 11:54:22 EST
see bug 30874 for another guy who'd like to see it
Comment 8 Sonia Dimitrov CLA 2003-02-05 08:43:20 EST
*** Bug 30874 has been marked as a duplicate of this bug. ***
Comment 9 Sonia Dimitrov CLA 2003-02-18 09:58:17 EST
*** Bug 32094 has been marked as a duplicate of this bug. ***
Comment 10 Ken DeLong CLA 2003-03-07 23:21:01 EST
How about setting a max_editors_open, and then closing them on an LRU bases.
Comment 11 Ed Burnette CLA 2003-03-07 23:30:47 EST
Max editors open is already there (at least in 2.1).
Comment 12 Edvard Scheffers CLA 2003-06-03 14:24:11 EDT
As an alternative to closing all but current, it would be nice to close all 
editors which are not pinned. Sometimes I like to keep a couple of editors open 
but close the rest.
Comment 13 Paul Smith CLA 2003-06-25 19:44:56 EDT
JBuilder had this option, you could right click on a Tab, and say "Close all 
but this one".  An extremely handy feature..  Please Please please.  It should 
be straight forward.
Comment 14 Channing Walton CLA 2004-01-06 06:32:26 EST
I would also like to see this, I find myself wanting to close all but one a lot.

Channing
Comment 15 Nick Edgar CLA 2004-01-22 10:56:45 EST
*** Bug 50376 has been marked as a duplicate of this bug. ***
Comment 16 Michael Van Meekeren CLA 2004-02-10 16:49:32 EST
There is a trial version of this available in a branch stream right now.  
You can see instructions on how to get this if you follow the steps in comment 
#45 for bug 37997.

Note this will be in once the Feb 10, 2004 4pm build is done

Not marking as fixed until this is in HEAD.
Comment 17 Michael Van Meekeren CLA 2004-02-11 16:36:07 EST
verified on MOTIF build I20020410 (8pm)
Comment 18 Michael Van Meekeren CLA 2004-02-16 15:54:07 EST
fixed on Feb 13, 2004 in HEAD