Project

General

Profile

« Previous | Next » 

Revision d00e1697

Added by Patrick Plitzner about 6 years ago

ref #6806 Allow adding multiple nodes for the same feature

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/AddFeatureHandler.java
46 46
            FeatureNode parent = ((FeatureTree) editor.getViewer().getInput()).getRoot();
47 47
            Collection<Feature> additionalFeatures = wizard.getAdditionalFeatures();
48 48
            for (Feature feature : additionalFeatures) {
49
                if (!editor.getSelectedFeatureTree().getDistinctFeatures().contains(feature)) {
50
                    CdmStore.getService(IFeatureNodeService.class).addChildFeatureNode(parent.getUuid(), feature.getUuid());
51
                }
49
                CdmStore.getService(IFeatureNodeService.class).addChildFeatureNode(parent.getUuid(), feature.getUuid());
52 50
            }
53 51
            thisPart.setDirty(true);
54 52
            editor.getViewer().refresh();

Also available in: Unified diff