Revision 2df57af0
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeToMisapplicationHandler.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
24 | 24 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
25 | 25 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
26 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
|
26 | 27 |
import eu.etaxonomy.taxeditor.editor.Page; |
27 | 28 |
import eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor; |
28 | 29 |
import eu.etaxonomy.taxeditor.editor.name.operation.ChangeConceptRelationshipTypeOperation; |
... | ... | |
50 | 51 |
TaxonNameEditor editor = (TaxonNameEditor) EditorUtil.getActiveEditorPage( |
51 | 52 |
Page.NAME); |
52 | 53 |
Shell shell = HandlerUtil.getActiveShell(event); |
53 |
if (!EditorUtil.forceUserSave(editor, shell)) { |
|
54 |
MultiPageTaxonEditor multiPageTaxonEditor = EditorUtil.getActiveMultiPageTaxonEditor(); |
|
55 |
if (!EditorUtil.forceUserSave(multiPageTaxonEditor, shell)) { |
|
54 | 56 |
return null; |
55 | 57 |
} |
56 | 58 |
Object selectedElement = EditorUtil.getSelection(event).getFirstElement(); |
Also available in: Unified diff
fix 5641