});
int status = dialog.open();
- if(status == IStatus.OK && wizard.openInEditor()){
+ if(status == IStatus.OK && wizard.openInEditor() && wizard.isSuccess()){
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, true);
if(wizard.openEmpty()){
EditorUtil.openEmptyE4(wizard.getParentTreeNode().getUuid());
private UUID generatedTaxonNodeUuid;
private IWizardPageListener wizardPageListener;
private boolean isOpenInEditor = false;
+ private boolean success = true;
/**
* <p>Constructor for AbstractNewEntityWizard.</p>
.fireChangeEvent(new CdmChangeEvent(Action.Create, result.getUpdatedObjects(), NewTaxonNodeWizard.class), true);
}else{
+ setSuccess(false);
if (!result.isOk()){
if (!result.getExceptions().isEmpty()){
MessagingUtils.error(getClass(), "Taxon could not be created", result.getExceptions().iterator().next());
}else{
MessagingUtils.warn(getClass(), "Taxon could not be created");
}
+
}
}
}catch(IllegalArgumentException e){
}
+ public boolean isSuccess() {
+ return success;
+ }
+
+
+ public void setSuccess(boolean success) {
+ this.success = success;
+ }
+
+
}