label17.setLayoutData(gridData_7);
label17.setText("Priority:");
sPriority = new Combo(gMain, SWT.NONE);
sPriority.setItems(new String[] { "idle", "below_normal", "normal", "above_normal", "high" });
sPriority.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
e.doit = (Utils.isOnlyDigits(e.text) || e.text.equals("idle") || e.text.equals("below_normal")
|| e.text.equals("normal") || e.text.equals("above_normal") || e.text.equals("high"));
}
});
final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, true, false);
gridData_1.verticalIndent = -1;
sPriority.setLayoutData(gridData_1);
sPriority.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
Utils.setBackground(-20, 20, sPriority);
listener.setPriority(sPriority.getText());
}
});
new Label(gMain, SWT.NONE);
new Label(gMain, SWT.NONE);
final Label visibleLabel = new Label(gMain, SWT.NONE);
visibleLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
visibleLabel.setText("Visible:");
comVisible = new Combo(gMain, SWT.READ_ONLY);
comVisible.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
comVisible.setItems(new String[] { "", "yes", "no", "never" });
comVisible.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
listener.setVisivle(comVisible.getText());
}
});
new Label(gMain, SWT.NONE);
new Label(gMain, SWT.NONE);
//gridData_16.widthHint = 17;
final Label minMaskLabel = new Label(gMain, SWT.NONE);
minMaskLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
minMaskLabel.setText("Min Tasks");
tMintasks = new Text(gMain, SWT.BORDER);
tMintasks.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
tMintasks.selectAll();
}
});
tMintasks.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
e.doit = Utils.isOnlyDigits(e.text);
}
});
tMintasks.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
listener.setMintasks(tMintasks.getText());
}
});
final GridData gridData_2 = new GridData(GridData.FILL, GridData.CENTER, false, false);
tMintasks.setLayoutData(gridData_2);
new Label(gMain, SWT.NONE);
new Label(gMain, SWT.NONE);
label15 = new Label(gMain, SWT.NONE);
label15.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
label15.setText("Tasks:");
sTasks = new Text(gMain, SWT.BORDER);
sTasks.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
sTasks.selectAll();
}
});
sTasks.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
sTasks.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
e.doit = Utils.isOnlyDigits(e.text);
}
});
sTasks.addSelectionListener(new SelectionAdapter() {
public void widgetDefaultSelected(final SelectionEvent e) {
}
});
sTasks.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
listener.setTasks(sTasks.getText());
}
});
new Label(gMain, SWT.NONE);
new Label(gMain, SWT.NONE);
label13 = new Label(gMain, SWT.NONE);
label13.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
label13.setText("Timeout:");
sTimeout = new Text(gMain, SWT.BORDER);
sTimeout.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
sTimeout.selectAll();
}
});
sTimeout.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
//e.doit = Utils.isOnlyDigits(e.text);
}
});
sTimeout.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
listener.setTimeout(sTimeout.getText());
}
});
final GridData gridData_9 = new GridData(GridData.FILL, GridData.CENTER, false, false);
//gridData_9.widthHint = 75;
sTimeout.setLayoutData(gridData_9);
final Label hhmmssLabel = new Label(gMain, SWT.NONE);
hhmmssLabel.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
hhmmssLabel.setText("HH:MM:SS ");
label11 = new Label(gMain, SWT.NONE);
label11.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false));
label11.setText("Idle Timeout:");
sIdleTimeout = new Text(gMain, SWT.BORDER);
sIdleTimeout.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
sIdleTimeout.selectAll();
}
});
sIdleTimeout.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
sIdleTimeout.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
//e.doit = Utils.isOnlyDigits(e.text);
}
});
sIdleTimeout.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
if(init) return;
listener.setIdleTimeout(sIdleTimeout.getText());
}
});
final Label hhmmssLabel_1 = new Label(gMain, SWT.NONE);
hhmmssLabel_1.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 2, 1));
hhmmssLabel_1.setText("HH:MM:SS or HH:MM or SS never");
final Label warnIfLongerLabel = new Label(gMain, SWT.NONE);
warnIfLongerLabel.setText("Warn if longer than:");
txtWarnIfLongerThan = new Text(gMain, SWT.BORDER);
txtWarnIfLongerThan.addVerifyListener(new VerifyListener() {
public void verifyText(final VerifyEvent e) {
}
});
txtWarnIfLongerThan.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {