Bug 12026

Summary: [Editor Mgmt] API request: IWorkbenchPage#closeEditors()
Product: [Eclipse Project] Platform Reporter: Jared Burns <jared_burns>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P4 Keywords: investigate
Version: 2.0   
Target Milestone: ---   
Hardware: Other   
OS: other   
Whiteboard:

Description Jared Burns CLA 2002-03-21 10:51:07 EST
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.
Comment 1 Kevin Haaland CLA 2002-05-01 18:55:02 EDT
If you require this change for the 2.0 release of eclipse please reopen this 
defect. 
Comment 2 Randy Giffen CLA 2002-08-09 16:05:07 EDT
Reopen to investigate
Comment 3 Michael Van Meekeren CLA 2004-03-03 14:41:02 EST
There is an API method for closing an array of editors and optionally prompt 
to save dirty editors now.  

IWorkbenchPage.closeAllEditors(boolean save)
Comment 4 Jared Burns CLA 2004-03-03 15:17:20 EST
I think you meant IWorkbenchPage#closeEditors(IEditorReference[], boolean)  :)