dialog.setItems(getAsTree());
if (dialog.open() == IDialogConstants.OK_ID) {
TreeItem treeItem = dialog.getSelectedItem();
selectionText.setText(treeItem.getLabel());
selectionText.setForeground(treeItem.getColor());
OrgFunctionDefinition definition = createNew();
definition.getParameters().get(0).setValue((String) treeItem.getTag());
fireCompletedEvent(definition);
}
} catch (Exception ex) {
DesignerLogger.logError("Unable to load executors", ex);
}