Project

General

Profile

Revision 21fbfba9

ID21fbfba9932c2db60e1588705b067c42816a4f2a
Parent 17502849
Child d3e5db7e

Added by Patrick Plitzner over 3 years ago

ref #6694 Always add new features to root node

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java
215 215
			WizardDialog dialog = new WizardDialog(shell, wizard);
216 216

  
217 217
			if (dialog.open() == IStatus.OK) {
218
                IStructuredSelection selection = (IStructuredSelection) composite.getViewer().getSelection();
219
                FeatureNode parent = (FeatureNode) (selection.getFirstElement() != null ? selection.getFirstElement()
220
                        : ((FeatureTree) composite.getViewer().getInput()).getRoot());
218
                FeatureNode parent = ((FeatureTree) composite.getViewer().getInput()).getRoot();
221 219
                Collection<Feature> additionalFeatures = wizard.getAdditionalFeatures();
222 220
                for (Feature feature : additionalFeatures) {
223 221
				    CdmStore.getService(IFeatureNodeService.class).addChildFeaturNode(parent, feature);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)