import eu.etaxonomy.taxeditor.editor.name.e4.container.AbstractGroupedContainerE4;
import eu.etaxonomy.taxeditor.editor.name.e4.container.AcceptedGroupE4;
import eu.etaxonomy.taxeditor.editor.name.e4.container.AcceptedNameContainerE4;
+import eu.etaxonomy.taxeditor.editor.name.e4.container.ConceptContainerE4;
import eu.etaxonomy.taxeditor.editor.name.e4.container.ContainerFactoryE4;
import eu.etaxonomy.taxeditor.editor.name.e4.container.HomotypicalSynonymGroupE4;
import eu.etaxonomy.taxeditor.editor.name.e4.container.MisappliedGroupE4;
monitor.subTask(Messages.TaxonNameEditor_SAVING_COMPOSITES
+ container.getTaxonBase().getTitleCache());
container.persistName();
-
+ //because of missing cascading the concepts need to be saved separately
+ if (container instanceof ConceptContainerE4){
+ input.addToSaveNewConcept((Taxon)container.getData());
+ }
// In case the progress monitor was canceled throw an exception.
if (monitor.isCanceled()) {
throw new OperationCanceledException();
@Override
public void handleEvent(Object eventSource) {
- if (getEntity().getType().isAnyMisappliedName()){
+ if (getEntity().getType().isAnyMisappliedName() || getEntity().getType().isAnySynonym()){
if (eventSource == secReference) {
getEntity().setCitation(secReference.getSelection());
} else if (eventSource == text_secundum_microreference) {