final Button okButton = new Button(shell, SWT.NONE);
okButton.setImage(SWTResourceManager.getImage(LoadConfiguration.class, ApplicationResources.getString("LoadConfiguration.36"))); //$NON-NLS-1$
okButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
//
LoadConfigurationForm form = new LoadConfigurationForm();
form.setResources(resources.getItems());
form.setActivationValue(Double.parseDouble(activationValue.getText()));
form.setContext(context.getText());
form.setRetries(Integer.parseInt(retries.getText()));
form.setDefaultValue(Double.parseDouble(defaultValue.getText()));
form.setMaxConcepts(Integer.parseInt(maxConcepts.getText()));
form.setMinConcepts(Integer.parseInt(minConcepts.getText()));
form.setPrizePaths(prizePaths.getSelection());
form.setRelationsFile(relationsFile);
result = form;
shell.close();
shell.dispose();
}
});