Community
Participate
Working Groups
IWorkbenchPage contains two API methods for closing editors: closeEditor(IEditorPart, boolean) and closeAllEditors(boolean). As part of the EditorView I'm making (Bug 10941), I'm allowing users to multi-select open editors and choose "Close." With the current API, I have to call closeEditor() repeatedly, which results in poor performance. I would like a method IWorkbenchPage#closeEditors(IEditorPart[], boolean) to close multiple editors.
If you require this change for the 2.0 release of eclipse please reopen this defect.
Reopen to investigate
There is an API method for closing an array of editors and optionally prompt to save dirty editors now. IWorkbenchPage.closeAllEditors(boolean save)
I think you meant IWorkbenchPage#closeEditors(IEditorReference[], boolean) :)