This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 12610 - Close multiple editor windows at once
Summary: Close multiple editor windows at once
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: jrojcek
URL:
Keywords: UI
Depends on:
Blocks: 4751 9047
  Show dependency tree
 
Reported: 2001-06-06 10:38 UTC by Christoph Kutzinski
Modified: 2008-12-23 14:33 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Kutzinski 2001-06-06 10:38:48 UTC
When working with the Netbeans editor it quickly comes to the point where I have 
a lot of editor windows open which I want to get rid of. Closing all of them 
manually is really laborious.
I would like a "close multiple" feature like in JBuilder. You get a checkbox 
list of all open editor windows, can do a select all and select none of them and 
finally close all selected editors with one mouse click.
Comment 1 David Konecny 2001-06-06 10:53:56 UTC
This is task for windowing system.
Comment 2 David Simonek 2001-06-08 10:12:49 UTC
Yes, accepted, but not sooner than in version 3.4.
Thankx.
Comment 3 Christoph Kutzinski 2001-06-08 11:43:56 UTC
No sooner than 3.4? That's a long time to wait.
If someone could point me to the right places (where to get the list of open files in the editor; where to invoke the close action), I would write a mini-module to handle this.
Comment 4 David Simonek 2001-06-08 12:57:15 UTC
Lack of human resources :-( If you can write it, that would be great, of course.
But not as a module I think, rather as part of core, because you'll probably
want action "multiple close" to appear on component's tab or elsewhere, where
modules dont have access. Moreover, it looks like regular window system
enhancement isn't it true?

My advices and questions:
a) woudn't it be better to generalize "multiple close" to all components, not
only editor? implementation shouldn't be harder
b) see org.openide.windows.Mode.getTopComponents to find list of components in
the frame
c) you'll have to verify opened flag,
org.openide.windows.TopComponent.isOpened(Workspace) will help you
d) org.openide.windows.TopComponent.close(Workspace) closes component
e) create action "MultipleCloseAction" or similar in org.netbeans.core.actions
f) for dialog, you should use org.openide.DialogDescriptor
g) please, when you're done with draft of l&f of the dialog, please consult it
on nbui mailing list...thanks
h) for testing of your action, just add it to the xml layer of core (somewhere
in org.netbeans.core.resources)
i) be sure not to change anything is org.openide.* (I mean adding new methods
etc, it shouln't be neccesary)

I'll be glad to help you more, just ask. I'm very happy that you are willing to
spend your time and help us. Due to time and resource limitations, we really
cannot implement everything users want, that's why such help is really valuable
for us.

Thank you a lot!!!

Just minor licencing thing - is it ok for you to put Sun Public Licence to the
code you will write? (copy that from other files..)

Dafe
Comment 5 Christoph Kutzinski 2001-06-08 14:40:52 UTC
Thanks for the suggestions.
Yes, of course its better to implement it as a general window system 
enhancement.
I just have to do a little learning on writing on the "core" IDE classes.
No problem with the Sun Public License.
Comment 6 Jan Chalupa 2001-11-27 11:51:58 UTC
Target milestone -> 3.3.1.
Comment 7 Jan Chalupa 2001-11-27 11:55:40 UTC
Target milestone -> 3.3.1.
Comment 8 Jan Chalupa 2002-01-11 14:01:56 UTC
Target milestone -> 3.4
Comment 9 Jan Chalupa 2002-01-11 14:05:26 UTC
Target milestone -> 3.4
Comment 10 Jan Chalupa 2002-01-11 14:07:03 UTC
Target milestone -> 3.4
Comment 11 Jan Chalupa 2002-01-11 14:10:26 UTC
Target milestone -> 3.4
Comment 12 David Simonek 2002-01-28 16:13:05 UTC
Marek, please evaluate as well, thanks.
Comment 13 mslama 2002-01-29 16:11:59 UTC
Needs to be discussed with ui how to exactly implement it (esp. dialog)
Comment 14 mslama 2002-02-11 14:56:21 UTC
Nice to have in 3.4.
Comment 15 Marek Grummich 2002-07-22 08:32:43 UTC
Target milestone was changed from '3.4' to TBD.
Comment 16 Marek Grummich 2002-07-22 08:42:42 UTC
Target milestone was changed from '3.4' to TBD.
Comment 17 mslama 2002-07-25 10:56:21 UTC
There is already more general specification about handling views in
IDE not just in editor. ui do you think it is subset of your
specification so this will be solved together with that or should we
do somethign special just for editor?
Comment 18 mslama 2002-07-31 16:15:47 UTC
Passing to ui.
Comment 19 mslama 2003-12-01 09:12:48 UTC
Fixed. In new window system Documents dialog allows closing of
multiple editors simultaneously.
Comment 20 Quality Engineering 2008-12-23 14:33:48 UTC
This issue had *1 votes* before move to platform component