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/RemotingChangeAcceptedTaxonToSynonymHandlerE4.java
143 143
    @CanExecute
144 144
    private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){
145 145
        boolean canExecute = false;
146
        canExecute = (selection.getFirstElement() instanceof TaxonNodeDto) && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid() != null ;
146
        canExecute = selection.size()==1
147
                && selection.getFirstElement() instanceof TaxonNodeDto
148
                && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid() != null ;
147 149
        menuItem.setVisible(canExecute);
148 150
        return canExecute;
149 151
    }

Also available in: Unified diff