Project

General

Profile

« Previous | Next » 

Revision 97de9a5d

Added by Katja Luther almost 6 years ago

ref #2380: adapt menu for classification

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingChangeAcceptedTaxonToSynonymHandlerE4.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;
148
        canExecute = (selection.getFirstElement() instanceof TaxonNodeDto) && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid() != null ;
149 149
        menuItem.setVisible(canExecute);
150 150
        return canExecute;
151 151
    }

Also available in: Unified diff