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/RemotingMoveFactualDataHandlerE4.java
123 123
    @CanExecute
124 124
    private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){
125 125
        boolean canExecute = false;
126
        canExecute = selection.getFirstElement() instanceof TaxonNodeDto;
126
        canExecute = (selection.getFirstElement() instanceof TaxonNodeDto) && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid()  != null;
127 127
        menuItem.setVisible(canExecute);
128 128
        return canExecute;
129 129
    }

Also available in: Unified diff