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.
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.
This is task for windowing system.
Yes, accepted, but not sooner than in version 3.4. Thankx.
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.
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
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.
Target milestone -> 3.3.1.
Target milestone -> 3.4
Marek, please evaluate as well, thanks.
Needs to be discussed with ui how to exactly implement it (esp. dialog)
Nice to have in 3.4.
Target milestone was changed from '3.4' to TBD.
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?
Passing to ui.
Fixed. In new window system Documents dialog allows closing of multiple editors simultaneously.
This issue had *1 votes* before move to platform component