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

Bug 17896

Summary: Local History pref only allows 1 MB max per file
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Eduardo Pereira <eduardo_pereira>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P1 CC: Tod_Creasey
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2002-05-26 22:45:29 EDT
Build 20020521

On the Local History preference page, the max per file setting can only be set 
to 1 MB.  It complains if it's higher or lower.

FileStatesPage.validateMaxFileStateSize() uses:
	workbenchStateSizeMaximum = getWorkspaceDescription
().getMaxFileStateSize() / MEGABYTES;

However, this is the value that the preference page actually controls.
i.e. it's the current value, not the maximum allowable value.

Likewise for validateMaxFileStates().
Comment 1 Nick Edgar CLA 2002-05-26 22:46:11 EDT
Should use IntegerFieldEditors here.
Comment 2 Nick Edgar CLA 2002-05-28 21:02:28 EDT
(Switching to IntegerFieldEditors is not P1).

It's possible this is a dup.  Tod did you fix one like this?
Comment 3 Tod Creasey CLA 2002-05-29 07:25:59 EDT
This is a duplicate - the problem was that it was using the previous setting as 
the maximum.

*** This bug has been marked as a duplicate of 17504 ***