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
    }
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
    }
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingMoveTaxonNodeHandlerE4.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;
147

  
146
        canExecute = (selection.getFirstElement() instanceof TaxonNodeDto) && ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid()  != null;
147
        menuItem.setVisible(canExecute);
148 148
        return canExecute;
149 149
    }
150 150

  

Also available in: Unified diff