Bug 3348 DCR: Code formatter enhancement (1GIYHQR)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java
textBox.setData(key);
		textBox.setLayoutData(new GridData());
		
		String currValue= (String)fWorkingValues.get(key);	
		textBox.setText(String.valueOf(getIntValue(currValue, 1)));
		textBox.setTextLimit(3);
		textBox.addModifyListener(fTextModifyListener);
		GridData gd= new GridData();
		gd.widthHint= convertWidthInCharsToPixels(5);
		textBox.setLayoutData(gd);
		fTextBoxes.add(textBox);
		return textBox;
	}	
	
	private void controlChanged(Button button) {
		ControlData data= (ControlData) button.getData();
		boolean selection= button.getSelection();
		String newValue= data.getValue(selection);	
		fWorkingValues.put(data.getKey(), newValue);
		updatePreview();
		
		if (PREF_TAB_CHAR.equals(data.getKey())) {
			fTabSizeTextBox.setEnabled(!selection);
			updateStatus(new StatusInfo());
			if (selection) {
				fTabSizeTextBox.setText((String)fWorkingValues.get(PREF_TAB_SIZE));
			}
		}
	}