Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343586

Summary: Limit number of open editor windows
Product: [Eclipse Project] Platform Reporter: Sebastian Dietrich <Sebastian.Dietrich>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse, prakash, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sebastian Dietrich CLA 2011-04-21 12:47:23 EDT
Build Identifier: 20110218-0911

I have opened a lot of editors (~450)  since I had do to a small refactoring on a lot of files. Eclipse crashes with a "no more handles" exception.

Since opening such a huge amount of editors is nonsense, eclipse should either automatically close the least recently opened files or make sure that the number of opened handles (1000) is not exceeded

Reproducible: Always

Steps to Reproduce:
1. open a lot of editors
2. eclipse crashes with a "no more handles" exception
3.
Comment 1 Oleg Besedin CLA 2011-04-21 16:28:37 EDT
This functionality is available on the Editor's preference page (Window -> Preferences -> General -> Editors, see "Close editors automatically".
Comment 2 Prakash Rangaraj CLA 2011-04-22 01:16:58 EDT
(In reply to comment #1)
> This functionality is available on the Editor's preference page (Window ->
> Preferences -> General -> Editors, see "Close editors automatically".

   This is disabled by default. Should IDE enable this option by default and set it to some value?
Comment 3 Sebastian Dietrich CLA 2011-04-22 02:42:02 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > This functionality is available on the Editor's preference page (Window ->
> > Preferences -> General -> Editors, see "Close editors automatically".
> 
>    This is disabled by default. Should IDE enable this option by default and
> set it to some value?

It is limited to max. 99 editors - maybe the default value should be 100 which can only be reduced.