Revision 323a4942
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/RemotingChangeAcceptedTaxonToSynonymHandler.java | ||
---|---|---|
57 | 57 |
public IStatus allowOperations(ExecutionEvent event) { |
58 | 58 |
TreeSelection selection = (TreeSelection) HandlerUtil.getCurrentSelection(event); |
59 | 59 |
// check that only a single taxon has been selected |
60 |
if(selection.size() > 0) {
|
|
60 |
if(selection.size() > 1) {
|
|
61 | 61 |
return new Status(IStatus.ERROR, |
62 | 62 |
"unknown", |
63 | 63 |
SINGLE_TAXON_SELECTION_MESSAGE); |
Also available in: Unified diff
rebase from remoting-4.0 branch