Revision 963170aa
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenTaxonNodeWizardHandlerE4.java | ||
---|---|---|
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
@Override |
50 |
public boolean canExecute(IStructuredSelection selection) {
|
|
51 |
if (selection.getFirstElement() instanceof TaxonNodeDto){
|
|
52 |
return ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid()!=null && PreferencesUtil.getBooleanValue(PreferencePredicate.ShowTaxonNodeWizard.getKey());
|
|
50 |
public boolean canExecute(Object selection) {
|
|
51 |
if (((IStructuredSelection)selection).getFirstElement() instanceof TaxonNodeDto){
|
|
52 |
return ((TaxonNodeDto)((IStructuredSelection)selection).getFirstElement()).getTaxonUuid()!=null && PreferencesUtil.getBooleanValue(PreferencePredicate.ShowTaxonNodeWizard.getKey());
|
|
53 | 53 |
} |
54 | 54 |
return false; |
55 | 55 |
} |
Also available in: Unified diff
ref #8890: allow multiselect for open in dynamic menu