Project

General

Profile

« Previous | Next » 

Revision 670cfe16

Added by Katja Luther almost 6 years ago

fix saving problem for concepts in name editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java
357 357
        CdmStore.getService(ITaxonService.class).save(toSaveNewConcept);
358 358

  
359 359
        toSaveNewName.clear();
360
        toSaveNewConcept.clear();
360 361

  
361 362
        CdmStore.getService(ITaxonNodeService.class).merge(taxonNode, true);
362 363

  
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
73 73
import eu.etaxonomy.taxeditor.editor.name.e4.container.AbstractGroupedContainerE4;
74 74
import eu.etaxonomy.taxeditor.editor.name.e4.container.AcceptedGroupE4;
75 75
import eu.etaxonomy.taxeditor.editor.name.e4.container.AcceptedNameContainerE4;
76
import eu.etaxonomy.taxeditor.editor.name.e4.container.ConceptContainerE4;
76 77
import eu.etaxonomy.taxeditor.editor.name.e4.container.ContainerFactoryE4;
77 78
import eu.etaxonomy.taxeditor.editor.name.e4.container.HomotypicalSynonymGroupE4;
78 79
import eu.etaxonomy.taxeditor.editor.name.e4.container.MisappliedGroupE4;
......
379 380
	        monitor.subTask(Messages.TaxonNameEditor_SAVING_COMPOSITES
380 381
	                + container.getTaxonBase().getTitleCache());
381 382
	        container.persistName();
382

  
383
	        //because of missing cascading the concepts need to be saved separately
384
	        if (container instanceof ConceptContainerE4){
385
	            input.addToSaveNewConcept((Taxon)container.getData());
386
	        }
383 387
	        // In case the progress monitor was canceled throw an exception.
384 388
	        if (monitor.isCanceled()) {
385 389
	            throw new OperationCanceledException();
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/AbstractGroupedContainerE4.java
448 448
			getTaxonBase().setTitleCache((getTaxonBase().generateTitle()));
449 449
			setDirty(false);
450 450
			getNameViewer().getTextWidget().setEnabled(true);
451

  
451 452
		}
452 453
	}
453 454

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java
423 423
			getEntity().setType(combo_referenceType.getSelection());
424 424
			updateContent();
425 425
		} else if (eventSource == element_timePeriod) {
426
			getEntity().setDatePublished(element_timePeriod.getVerbatimTimePeriod());
426
			getEntity().setDatePublished(element_timePeriod.getTimePeriod());
427 427
			clearException();
428 428
		}
429 429
		// selections
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java
166 166

  
167 167
	@Override
168 168
	public void handleEvent(Object eventSource) {
169
		if (getEntity().getType().isAnyMisappliedName()){
169
		if (getEntity().getType().isAnyMisappliedName() || getEntity().getType().isAnySynonym()){
170 170
			 if (eventSource == secReference) {
171 171
				getEntity().setCitation(secReference.getSelection());
172 172
			} else if (eventSource == text_secundum_microreference) {

Also available in: Unified diff