Bug 12026 - [Editor Mgmt] API request: IWorkbenchPage#closeEditors()
Summary: [Editor Mgmt] API request: IWorkbenchPage#closeEditors()
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-03-21 10:51 EST by Jared Burns CLA
Modified: 2004-03-03 15:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)  :)