Creates the field editors. Field editors are abstractions of the common
GUI blocks needed to manipulate various types of preferences. Each field
editor knows how to save and restore itself.
IntegerFieldEditor ife;
ife = new PortFieldEditor(PreferenceInitializer.ATTR_DEBUG_PORT_BASE,
"ADB debugger base port:", getFieldEditorParent());
addField(ife);
BooleanFieldEditor bfe;
bfe = new BooleanFieldEditor(PreferenceInitializer.ATTR_DEFAULT_THREAD_UPDATE,
"Thread updates enabled by default", getFieldEditorParent());
addField(bfe);
bfe = new BooleanFieldEditor(PreferenceInitializer.ATTR_DEFAULT_HEAP_UPDATE,
"Heap updates enabled by default", getFieldEditorParent());
addField(bfe);
ife = new IntegerFieldEditor(PreferenceInitializer.ATTR_THREAD_INTERVAL,
"Thread status refresh interval (seconds):", getFieldEditorParent());
ife.setValidRange(1, 60);
addField(ife);
RadioGroupFieldEditor rgfe = new RadioGroupFieldEditor(PreferenceInitializer.ATTR_LOG_LEVEL,
"Logging Level", 1, new String[][] {
{ "Verbose", LogLevel.VERBOSE.getStringValue() },
{ "Debug", LogLevel.DEBUG.getStringValue() },
{ "Info", LogLevel.INFO.getStringValue() },
{ "Warning", LogLevel.WARN.getStringValue() },
{ "Error", LogLevel.ERROR.getStringValue() },
{ "Assert", LogLevel.ASSERT.getStringValue() }
},
getFieldEditorParent(), true);
addField(rgfe);