Revision 28e59cee
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/CreateNewTaxonBaseOperation.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.core.commands.operations.IUndoContext; |
14 | 14 |
|
15 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
|
15 | 16 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
16 | 17 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
17 | 18 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
... | ... | |
55 | 56 |
Object activePart = EditorUtil.getActivePart(); |
56 | 57 |
if (activePart instanceof TaxonNameEditorE4){ |
57 | 58 |
editor = (TaxonNameEditorE4) activePart; |
58 |
editor.getEditorInput().addToSaveNew(newTaxonBase); |
|
59 |
if (newTaxonBase instanceof Synonym){ |
|
60 |
editor.getEditorInput().addToSaveNewSynonym((Synonym)newTaxonBase); |
|
61 |
}else{ |
|
62 |
editor.getEditorInput().addToSaveNewConcept((Taxon)newTaxonBase); |
|
63 |
} |
|
59 | 64 |
editor.setDirty(); |
60 | 65 |
} |
61 | 66 |
} |
Also available in: Unified diff
fix creation of hybrids after deleting cascading in relationships