Project

General

Profile

Revision e013914f

IDe013914f50169411fecd8b685f80b5140edf14e4
Parent 4c124358
Child 017f41a2

Added by Patrick Plitzner over 3 years ago

ref #7010 Fix enabling of move description handler

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/MoveDescriptionToOtherTaxonHandlerE4.java
182 182
            ISelection selection = factualDataPart.getViewer().getSelection();
183 183
            if(selection instanceof IStructuredSelection){
184 184
                Object firstElement = ((IStructuredSelection) selection).getFirstElement();
185
                canExecute = firstElement instanceof FeatureNodeContainer
185
                canExecute = ((IStructuredSelection) selection).size()==1
186
                        &&
187
                        (firstElement instanceof FeatureNodeContainer
186 188
                        || firstElement instanceof DescriptionElementBase
187
                        || firstElement instanceof DescriptionBase;
189
                        || firstElement instanceof DescriptionBase);
188 190
                menuItem.setVisible(canExecute);
189 191
            }
190 192
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)