Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343586 - Limit number of open editor windows
Summary: Limit number of open editor windows
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 12:47 EDT by Sebastian Dietrich CLA
Modified: 2011-04-22 02:42 EDT (History)
3 users (show)

See Also:


Attachments

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