Project

General

Profile

« Previous | Next » 

Revision f853dd5b

Added by Patrick Plitzner almost 6 years ago

ref #7010 Adapt taxon navigator handlers for multiple selection

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingMoveTaxonNodeHandlerE4.java
145 145
    @CanExecute
146 146
    private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){
147 147
        boolean canExecute = false;
148
        canExecute = (selection.getFirstElement() instanceof TaxonNodeDto) && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid()  != null;
148
        canExecute = selection.size()==1
149
                && selection.getFirstElement() instanceof TaxonNodeDto
150
                && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid() != null;
149 151
        menuItem.setVisible(canExecute);
150 152
        return canExecute;
151 153
    }

Also available in: Unified diff