Revision 9db418d9
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java | ||
---|---|---|
232 | 232 |
&& ((TaxonNameEditorE4) part.getObject()).getTaxon()!=null |
233 | 233 |
&& ((TaxonNameEditorE4) part.getObject()).getTaxon().getUuid().equals(input.getTaxon().getUuid())){ |
234 | 234 |
if (part.isDirty()){ |
235 |
forceUserSaveE4Editor(((TaxonNameEditorE4) part.getObject()), getShell()); |
|
236 |
input = TaxonEditorInputE4.NewInstance(input.getTaxonNode().getUuid()); |
|
235 |
boolean doSave = forceUserSaveE4Editor(((TaxonNameEditorE4) part.getObject()), getShell()); |
|
236 |
if (doSave){ |
|
237 |
input = TaxonEditorInputE4.NewInstance(input.getTaxonNode().getUuid()); |
|
238 |
}else { |
|
239 |
return; |
|
240 |
} |
|
237 | 241 |
} |
238 | 242 |
partService.hidePart(part); |
239 | 243 |
break; |
Also available in: Unified diff
fix #9587: reload the editor input when saving and skip if cancel