tProcessClass.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
//tProcessClass.selectAll();
}
});
tProcessClass.addTraverseListener(new TraverseListener() {
public void keyTraversed(final TraverseEvent e) {
if(!listener.isValidClass(tProcessClass.getText()) || dom.isLifeElement()) {
e.doit = false;
return;
}
traversed(e);
/*if (e.keyCode == SWT.CR) {
e.doit = false;
applyClass();
//setInput(false);
//bNew.setEnabled(!bApply.getEnabled());
}*/
}
});
bApply = new Button(group, SWT.NONE);
label5 = new Label(group, SWT.NONE);
label5.setText("Max Processes:");
GridData gridData4 = new GridData(GridData.FILL, GridData.CENTER, false, false);
gridData4.widthHint = 20;
sMaxProcesses = new Spinner(group, SWT.NONE);
sMaxProcesses.addTraverseListener(new TraverseListener() {
public void keyTraversed(final TraverseEvent e) {
traversed(e);
/*if (e.keyCode == SWT.CR) {
applyClass();
//bNew.setEnabled(!bApply.getEnabled());
}*/
}
});
sMaxProcesses.setMaximum(99999999);
sMaxProcesses.setLayoutData(gridData4);
sMaxProcesses.setEnabled(false);
sMaxProcesses.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
if (e.keyCode == SWT.CR) {
applyClass();
bNew.setEnabled(!bApply.getEnabled());
}
}
});
sMaxProcesses.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
bApply.setEnabled(true);
}
});
label10 = new Label(group, SWT.NONE);
final GridData gridData_2 = new GridData(GridData.END, GridData.CENTER, false, false);
gridData_2.widthHint = 79;
label10.setLayoutData(gridData_2);
label10.setText("Scheduler ID:");
tSpoolerID = new Text(group, SWT.BORDER);
tSpoolerID.addTraverseListener(new TraverseListener() {
public void keyTraversed(final TraverseEvent e) {
traversed(e);
/*if (e.keyCode == SWT.CR) {
//tSpoolerID.addSelectionListener(getSelectionListener());
applyClass();
}*/
}
});
tSpoolerID.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
tSpoolerID.selectAll();
}
});
tSpoolerID.setLayoutData(new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.CENTER, true, false));
tSpoolerID.setEnabled(false);
/*tSpoolerID.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
if (e.keyCode == SWT.CR) {
System.out.println("not do it");
applyClass();
bNew.setEnabled(!bApply.getEnabled());
}
}
});
*/
tSpoolerID.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
//System.out.println("modify ");
bApply.setEnabled(true);
}
});
new Label(group, SWT.NONE);
final Label remoteExecutionOnLabel = new Label(group, SWT.NONE);
remoteExecutionOnLabel.setText("Executed by Scheduler on host:");
tRemoteHost = new Text(group, SWT.BORDER);
tRemoteHost.addTraverseListener(new TraverseListener() {
public void keyTraversed(final TraverseEvent e) {
traversed(e);
/*if (e.keyCode == SWT.CR) {
applyClass();
//bNew.setEnabled(!bApply.getEnabled());
}*/
}
});
tRemoteHost.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
tRemoteHost.selectAll();
}
});
tRemoteHost.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
bApply.setEnabled(true);
}
});
tRemoteHost.setEnabled(false);
/*tRemoteHost.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR) {
applyClass();
bNew.setEnabled(!bApply.getEnabled());
}
}
});
*/
tRemoteHost.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
final Label portLabel = new Label(group, SWT.NONE);
final GridData gridData_1 = new GridData(GridData.CENTER, GridData.CENTER, false, false);
gridData_1.horizontalIndent = 5;
portLabel.setLayoutData(gridData_1);
portLabel.setText("at Port");
tRemotePort = new Text(group, SWT.BORDER);
tRemotePort.addTraverseListener(new TraverseListener() {
public void keyTraversed(final TraverseEvent e) {
traversed(e);
/*if (e.keyCode == SWT.CR) {
applyClass();