commands.add(form.getCommitCommand());
commands.add(form.getRevertCommand());
return commands;
}
};
TitledWidgetApplicationDialog dialog = new TitledWidgetApplicationDialog(widget);
form.addValidationResultsReporter(new SimpleValidationResultsReporter(form.getFormModel().getValidationResults(), widget));
dialog.setTitle("Form test");
dialog.setModal(modal);
dialog.showDialog();
dialog.getParentWindow().addWindowListener(new WindowAdapter()
{
@Override
public void windowClosed(WindowEvent e)
{
System.exit(0);