Project

General

Profile

Revision a160d195

IDa160d195b44662f3257ae05c9db8ae20812484cf
Parent ec35f482
Child e229bf65

Added by Katja Luther over 3 years ago

do not allow to add NameDescriptions in bulkeditor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java
36 36
import eu.etaxonomy.cdm.model.description.DescriptionBase;
37 37
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
38 38
import eu.etaxonomy.cdm.model.description.IDescribable;
39
import eu.etaxonomy.cdm.model.name.TaxonName;
39 40
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
40 41
import eu.etaxonomy.cdm.model.taxon.Taxon;
41 42
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4;
......
150 151
                    return;
151 152
                }
152 153
            }
154

  
153 155
            if(firstElement instanceof TreeNode){
154 156
                firstElement = ((TreeNode) firstElement).getValue();
155 157
            }
156 158
            if(firstElement instanceof IDescribable<?>
157 159
                && partObject instanceof IPartContentHasFactualData
158
                    && !(firstElement instanceof SpecimenOrObservationBase && partObject instanceof BulkEditorE4)){
160
                    && !(firstElement instanceof SpecimenOrObservationBase && partObject instanceof BulkEditorE4)
161
                    && !(firstElement instanceof TaxonName && partObject instanceof BulkEditorE4)){
159 162

  
160 163
                featureNodeContainerCache.clear();
161 164
                showViewer(structuredSelection, activePart, viewer);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)