Bug 2269 - [Preferences] Need way to set the width of an IntegerFieldEditor (1GEHN44)
Summary: [Preferences] Need way to set the width of an IntegerFieldEditor (1GEHN44)
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-10-10 22:32 EDT by Dirk Baeumer CLA
Modified: 2005-05-10 14:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 22:32:56 EDT
StringFieldEditor support a width field but the IntegerFieldEditor provides no API to set the corresponding value.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 18:04:03 EST
PRODUCT VERSION:
	113

Comment 2 Dirk Baeumer CLA 2002-01-23 11:27:11 EST
Can be postponed > 2.0
Comment 3 Kevin Haaland CLA 2002-01-23 17:50:19 EST
Defering based on feedback from reporter. 
Comment 4 Randy Giffen CLA 2002-08-08 10:27:58 EDT
Reopen for investigation
Comment 5 Tod Creasey CLA 2002-08-09 10:18:02 EDT
The IntegerFieldEditor has a fixed limit of 10 so as to prevent a huge amount 
of whitespace. Do you have a place where you think you need this?
Comment 6 Dirk Baeumer CLA 2002-08-09 12:46:40 EDT
As far as I can remember the problem was that if the number you can enter is 
constraint (e.g. < 100) you ended up with an input field for 10 characters. 
This looks strange in the UI.
Comment 7 Tod Creasey CLA 2002-08-15 08:31:43 EDT
The problem there is sizing as well then. If we limited it to the number of 
digits of the maximum value then in most cases it becomes very small.

I think however that this debate means there is no good answer so allowing the 
developer to configure this is a good idea.
Comment 8 Tod Creasey CLA 2002-08-15 09:15:58 EDT
Added new constructor IntegerFieldEditor(String name, String labelText, 
Composite parent,int textLimit) allow for this.
Comment 9 Tod Creasey CLA 2005-05-10 14:55:44 EDT
Marking closed