use of org.eclipse.jface.preference.ComboFieldEditor in project yamcs-studio by yamcs.
the class SoundPreferencePage method createFieldEditors.
@Override
protected void createFieldEditors() {
// separator
Label label = new Label(getFieldEditorParent(), SWT.NONE);
label.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
// beep fields
String[][] typeOfBeepTriggers = { { "Do Not Beep", "NONE" }, { "Parameter First Out-of-Limit Value", "FIRST" }, { "Parameter Each Out-of-Limit Value", "EACH" } };
triggerBeep = new ComboFieldEditor("triggerBeep", "Beep on event:", typeOfBeepTriggers, getFieldEditorParent());
addField(triggerBeep);
beepWarning = new BooleanFieldEditor("beepWarning", "Beep on Warning", getFieldEditorParent());
addField(beepWarning);
beepCritical = new BooleanFieldEditor("beepCritical", "Beep on Critical", getFieldEditorParent());
addField(beepCritical);
}
Aggregations