Project

General

Profile

« Previous | Next » 

Revision 6ba01b22

Added by Patrick Plitzner about 6 years ago

ref #6746 Add details view for feature tree and feature node

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/AddFeatureHandler.java
54 54
    }
55 55

  
56 56
    @CanExecute
57
    public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart thisPart) {
58
        return thisPart.getObject() instanceof FeatureTreeEditor && ((FeatureTreeEditor) thisPart.getObject()).getSelectedFeatureTree()!=null;
57
    public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart thisPart,
58
            @Named(IServiceConstants.ACTIVE_SELECTION)Object selection) {
59
        return thisPart.getObject() instanceof FeatureTreeEditor
60
                && selection instanceof FeatureTree;
59 61
    }
60 62
}

Also available in: Unified diff