public void widgetSelected(SelectionEvent e) {
AbstractNewEntityWizard wizard = getNewEntityWizard(e.text);
+
wizard.init(null, null);
- if(wizard.getEntity() != null) {
- WizardDialog dialog = new WizardDialog(getShell(), wizard);
- int status = dialog.open();
+ WizardDialog dialog = new WizardDialog(getShell(), wizard);
+ int status = dialog.open();
- if (status == IStatus.OK) {
+ if (status == IStatus.OK) {
- T entity = (T) wizard.getEntity();
- refresh();
- setPattern(entity);
- getConversationHolder().bind();
- }
+ T entity = (T) wizard.getEntity();
+
+ // addObjectToModel(teamOrPerson);
+ refresh();
+ setPattern(entity);
+ getConversationHolder().bind();
}
}
};