Project

General

Profile

« Previous | Next » 

Revision e82f01c0

Added by Patrick Plitzner over 6 years ago

ref #6909 Hide disabled menu items

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/SetSecReferenceForSubtreeHandlerE4.java
98 98
       }
99 99

  
100 100
       @CanExecute
101
       private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection){
102
           return selection.getFirstElement() instanceof ITaxonTreeNode;
101
       private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){
102
           boolean canExecute = false;
103
           menuItem.setVisible(canExecute);
104
           canExecute = selection.getFirstElement() instanceof ITaxonTreeNode;
105
           return canExecute;
103 106
       }
104 107

  
105 108
       @Override

Also available in: Unified diff