public void focusGained(final FocusEvent e) {
txtEventName.selectAll();
}
});
txtEventName.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtEventName.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtEventName.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
butApply = new Button(group, SWT.NONE);
butApply.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
apply();
}
});
butApply.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
butApply.setText("Apply");
final Label eventTitleLabel = new Label(group, SWT.NONE);
eventTitleLabel.setLayoutData(new GridData());
eventTitleLabel.setText("Event Title");
txtTitle = new Text(group, SWT.BORDER);
txtTitle.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtTitle.selectAll();
}
});
txtTitle.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtTitle.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtTitle.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
butNew = new Button(group, SWT.NONE);
butNew.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(final SelectionEvent e) {
refresh();
}
});
butNew.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
butNew.setText("New");
matchingAttributesGroup = new Group(group, SWT.NONE);
matchingAttributesGroup.setText("Matching Attributes");
matchingAttributesGroup.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 3, 1));
final GridLayout gridLayout_1 = new GridLayout();
gridLayout_1.marginTop = 5;
gridLayout_1.numColumns = 4;
matchingAttributesGroup.setLayout(gridLayout_1);
final Label txtEventClass = new Label(matchingAttributesGroup, SWT.NONE);
txtEventClass.setText("Event Class");
cboEventClass = new Combo(matchingAttributesGroup, SWT.NONE);
cboEventClass.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
cboEventClass.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
cboEventClass.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
final Label labeld = new Label(matchingAttributesGroup, SWT.NONE);
labeld.setText("Event Id");
txtEventId = new Text(matchingAttributesGroup, SWT.BORDER);
txtEventId.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtEventId.selectAll();
}
});
txtEventId.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtEventId.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtEventId.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
final Label jobNameLabel = new Label(matchingAttributesGroup, SWT.NONE);
jobNameLabel.setText("Job Name");
txtJobname = new Text(matchingAttributesGroup, SWT.BORDER);
txtJobname.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtJobname.selectAll();
}
});
txtJobname.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtJobname.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtJobname.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
final Label jobChainLabel = new Label(matchingAttributesGroup, SWT.NONE);
jobChainLabel.setText("Job Chain");
txtJobChain = new Text(matchingAttributesGroup, SWT.BORDER);
txtJobChain.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtJobChain.selectAll();
}
});
txtJobChain.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtJobChain.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtJobChain.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
final Label lblOrderId = new Label(matchingAttributesGroup, SWT.NONE);
lblOrderId.setText("Order Id");
txtOrderId = new Text(matchingAttributesGroup, SWT.BORDER);
txtOrderId.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtOrderId.selectAll();
}
});
txtOrderId.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtOrderId.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});
txtOrderId.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
final Label exitCodeLabel = new Label(matchingAttributesGroup, SWT.NONE);
exitCodeLabel.setLayoutData(new GridData());
exitCodeLabel.setText("Exit Code");
txtExitCode = new Text(matchingAttributesGroup, SWT.BORDER);
txtExitCode.addFocusListener(new FocusAdapter() {
public void focusGained(final FocusEvent e) {
txtExitCode.selectAll();
}
});
txtExitCode.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
butApply.setEnabled(true);
}
});
txtExitCode.addKeyListener(new KeyAdapter() {
public void keyPressed(final KeyEvent e) {
if (e.keyCode == SWT.CR )
apply();
}
});