use of org.eclipse.jface.preference.BooleanFieldEditor in project yamcs-studio by yamcs.
the class ConnectionPreferencePage 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));
singleConnectionMode = new BooleanFieldEditor("singleConnectionMode", "Single Connection Mode", getFieldEditorParent());
addField(singleConnectionMode);
connectionString = new StringFieldEditor("connectionString", "Connection String (for single connection mode)", getFieldEditorParent());
addField(connectionString);
}
use of org.eclipse.jface.preference.BooleanFieldEditor 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