public class PPFormatterPreferencePage extends AbstractPreferencePage {
@Override
protected void createFieldEditors() {
IntegerFieldEditor indentSizeFieldEditor = new IntegerFieldEditor(
FormatterGeneralPreferences.FORMATTER_INDENTSIZE, "Indentation size", getFieldEditorParent(), 2, 4);
indentSizeFieldEditor.setEmptyStringAllowed(false);
indentSizeFieldEditor.setTextLimit(2);
indentSizeFieldEditor.setValidRange(2, 16);
addField(indentSizeFieldEditor);
IntegerFieldEditor maxWidthFieldEditor = new IntegerFieldEditor(
FormatterGeneralPreferences.FORMATTER_MAXWIDTH, "Preferred max width", getFieldEditorParent(), 3, 4);
maxWidthFieldEditor.setEmptyStringAllowed(false);
indentSizeFieldEditor.setTextLimit(3);
maxWidthFieldEditor.setValidRange(40, 255);
addField(maxWidthFieldEditor);
BooleanFieldEditor spacesForTabs = new BooleanFieldEditor(
FormatterGeneralPreferences.FORMATTER_SPACES_FOR_TABS, //
"Replace tabs with spaces on input", //