group.setText("Mail");
group.setLayout(gridLayout);
Label label14 = new Label(group, SWT.NONE);
label14.setText("Mail On Error");
mailOnError = new Combo(group, SWT.READ_ONLY);
mailOnError.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
mailOnDelayAfterError.setEnabled(mailOnError.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
listener.setValue("mail_on_error", mailOnError.getText(), "no");
}
});
GridData gd_mailOnError = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_mailOnError.minimumWidth = 150;
mailOnError.setLayoutData(gd_mailOnError);
Label label1 = new Label(group, SWT.NONE);
label1.setText("Mail On Warning");
mailOnWarning = new Combo(group, SWT.READ_ONLY);
mailOnWarning.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
mailOnDelayAfterError.setEnabled(mailOnWarning.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
listener.setValue("mail_on_warning", mailOnWarning.getText(), "no");
}
});
GridData gd_mailOnWarning = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_mailOnWarning.minimumWidth = 150;
mailOnWarning.setLayoutData(gd_mailOnWarning);
Label label3 = new Label(group, SWT.NONE);
label3.setText("Mail On Success");
mailOnSuccess = new Combo(group, SWT.READ_ONLY);
mailOnSuccess.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("mail_on_success", mailOnSuccess.getText(), "no");
}
});
GridData gd_mailOnSuccess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_mailOnSuccess.minimumWidth = 150;
mailOnSuccess.setLayoutData(gd_mailOnSuccess);
final Label mailOnProcessLabel = new Label(group, SWT.NONE);
mailOnProcessLabel.setText("Mail On Process");
mailOnProcess = new Combo(group, SWT.READ_ONLY);
mailOnProcess.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("mail_on_process", mailOnProcess.getText(), "no");
}
});
GridData gd_mailOnProcess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_mailOnProcess.minimumWidth = 150;
mailOnProcess.setLayoutData(gd_mailOnProcess);
final Label mailOnDelayLabel = new Label(group, SWT.NONE);
mailOnDelayLabel.setText("Mail On Delay After Error");
mailOnDelayAfterError = new Combo(group, SWT.READ_ONLY);
mailOnDelayAfterError.setEnabled(mailOnError.getText().equals("yes") || mailOnWarning.getText().equals("yes"));
mailOnDelayAfterError.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("mail_on_delay_after_error", mailOnDelayAfterError.getText(), "no");
}
});
mailOnDelayAfterError.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
final Label ddddLabel = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
gridData_1.heightHint = 8;
ddddLabel.setLayoutData(gridData_1);
final Label mailToLabel = new Label(group, SWT.NONE);
mailToLabel.setText("Mail To");
mailTo = new Text(group, SWT.BORDER);
mailTo.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
mailTo.selectAll();
}
});
mailTo.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
listener.setValue("log_mail_to", mailTo.getText());
}
});
mailTo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
final Label mailCcLabel = new Label(group, SWT.NONE);
mailCcLabel.setText("Mail CC");
mailCC = new Text(group, SWT.BORDER);
mailCC.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
mailCC.selectAll();
}
});
mailCC.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
listener.setValue("log_mail_cc", mailCC.getText());
}
});
final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, true, false);
gridData_2.minimumWidth = 60;
mailCC.setLayoutData(gridData_2);
final Label mailBccLabel = new Label(group, SWT.NONE);
mailBccLabel.setText("Mail BCC");
GridData gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);
gridData.minimumWidth = 60;
mailBCC = new Text(group, SWT.BORDER);
mailBCC.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
mailBCC.selectAll();
}
});
mailBCC.setLayoutData(gridData);
mailBCC.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
listener.setValue("log_mail_bcc", mailBCC.getText());
}
});
final Label label_1 = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
final GridData gridData_3 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
gridData_3.heightHint = 8;
label_1.setLayoutData(gridData_3);
final Label logLevelLabel = new Label(group, SWT.NONE);
logLevelLabel.setText("Log Level");
LogLevel = new Combo(group, SWT.READ_ONLY);
GridData gd_LogLevel = new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1);
gd_LogLevel.minimumWidth = 150;
LogLevel.setLayoutData(gd_LogLevel);
LogLevel.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("log_level", LogLevel.getText());
}
});
final Label label_2 = new Label(group, SWT.HORIZONTAL | SWT.SEPARATOR);
final GridData gridData_4 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
gridData_4.heightHint = 8;
label_2.setLayoutData(gridData_4);
final Label historyLabel = new Label(group, SWT.NONE);
historyLabel.setText("History");
cboHistory = new Combo(group, SWT.READ_ONLY);
cboHistory.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("history", cboHistory.getText());
}
});
GridData gd_cboHistory = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_cboHistory.minimumWidth = 150;
cboHistory.setLayoutData(gd_cboHistory);
final Label historyOnProcessLabel = new Label(group, SWT.NONE);
historyOnProcessLabel.setText("History On Process");
cboHistoryOnProcess = new Combo(group, SWT.NONE);
cboHistoryOnProcess.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
setOnHistory();
}
});
cboHistoryOnProcess.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
e.doit=Utils.isOnlyDigits(e.text);
}
});
cboHistoryOnProcess.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
cboHistoryOnProcess.setText(listener.getValue("history_on_process"));
}
});
GridData gd_cboHistoryOnProcess = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gd_cboHistoryOnProcess.minimumWidth = 150;
cboHistoryOnProcess.setLayoutData(gd_cboHistoryOnProcess);
final Label historyWithLogLabel = new Label(group, SWT.NONE);
historyWithLogLabel.setText("History With Log");
cboHistoryWithLog = new Combo(group, SWT.READ_ONLY);
cboHistoryWithLog.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
listener.setValue("history_with_log", cboHistoryWithLog.getText());
}
});