Revision 733c1cfb
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/MoveDescriptionElementsHandlerE4.java | ||
---|---|---|
155 | 155 |
} |
156 | 156 |
newAcceptedTaxonNodeUuid = newAcceptedTaxonNode.getUuid(); |
157 | 157 |
|
158 |
MPart targetEditor = EditorUtil.checkForChanges(targetTaxon.getUuid(), partService); |
|
159 |
if (targetEditor != null && targetEditor.getElementId().equals("eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4")){ |
|
160 |
boolean proceed = MessageDialog.openQuestion(null, |
|
161 |
Messages.MoveDescriptionToOtherTaxonHandler_SAVE_CHANGES, Messages.MoveDescriptionToOtherTaxonHandler_SAVE_CHANGES_MESSAGE); |
|
162 |
if (proceed) { |
|
163 |
e4WrappedPart = WorkbenchUtility.getE4WrappedPart(targetEditor); |
|
164 |
((TaxonNameEditorE4)e4WrappedPart).save(AbstractUtility.getMonitor()); |
|
165 |
} else { |
|
166 |
return; |
|
167 |
} |
|
168 |
} |
|
169 |
|
|
158 | 170 |
String moveMessage = String.format(Messages.MoveDescriptionElementsHandler_ELEMENTS_MOVED, editor.getTaxon()); |
159 | 171 |
|
160 | 172 |
AbstractPostOperation operation = new MoveDescriptionElementsOperation( |
Also available in: Unified diff
ref #3535: add check for dirty target when move description or description elements