Project

General

Profile

« Previous | Next » 

Revision 963170aa

Added by Katja Luther about 4 years ago

ref #8890: allow multiselect for open in dynamic menu

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenClassificationWizardHandlerE4.java
30 30
     * {@inheritDoc}
31 31
     */
32 32
    @Override
33
    protected boolean canExecute(IStructuredSelection entity) {
33
    protected boolean canExecute(Object selection) {
34 34
//        return true;
35
        if (entity.getFirstElement() instanceof TaxonNodeDto){
36
            return ((TaxonNodeDto)entity.getFirstElement()).getTaxonUuid() == null;
35
        if (((IStructuredSelection)selection).getFirstElement() instanceof TaxonNodeDto){
36
            return ((TaxonNodeDto)((IStructuredSelection)selection).getFirstElement()).getTaxonUuid() == null;
37 37
        }
38 38
        return false;
39 39
//      return entity.getClassification().getRootNode().equals(entity);

Also available in: Unified diff