Revision d446db04
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonNodeWizard.java | ||
---|---|---|
40 | 40 |
private UUID generatedTaxonNodeUuid; |
41 | 41 |
private IWizardPageListener wizardPageListener; |
42 | 42 |
private boolean isOpenInEditor = false; |
43 |
private boolean success = true; |
|
43 | 44 |
|
44 | 45 |
/** |
45 | 46 |
* <p>Constructor for AbstractNewEntityWizard.</p> |
... | ... | |
83 | 84 |
.fireChangeEvent(new CdmChangeEvent(Action.Create, result.getUpdatedObjects(), NewTaxonNodeWizard.class), true); |
84 | 85 |
|
85 | 86 |
}else{ |
87 |
setSuccess(false); |
|
86 | 88 |
if (!result.isOk()){ |
87 | 89 |
if (!result.getExceptions().isEmpty()){ |
88 | 90 |
MessagingUtils.error(getClass(), "Taxon could not be created", result.getExceptions().iterator().next()); |
89 | 91 |
}else{ |
90 | 92 |
MessagingUtils.warn(getClass(), "Taxon could not be created"); |
91 | 93 |
} |
94 |
|
|
92 | 95 |
} |
93 | 96 |
} |
94 | 97 |
}catch(IllegalArgumentException e){ |
... | ... | |
167 | 170 |
} |
168 | 171 |
|
169 | 172 |
|
173 |
public boolean isSuccess() { |
|
174 |
return success; |
|
175 |
} |
|
176 |
|
|
177 |
|
|
178 |
public void setSuccess(boolean success) { |
|
179 |
this.success = success; |
|
180 |
} |
|
181 |
|
|
182 |
|
|
170 | 183 |
|
171 | 184 |
} |
Also available in: Unified diff
ref #8223: check success before try to open new taxon