- if(associationsViewer.getSelection() instanceof IStructuredSelection){
- Object firstElement = ((IStructuredSelection) associationsViewer.getSelection()).getFirstElement();
+ if(event.getSelection() instanceof IStructuredSelection){
+ Object firstElement = ((IStructuredSelection) event.getSelection()).getFirstElement();
if(firstElement instanceof TaxonBase<?>){
TaxonBase<?> taxonBase = (TaxonBase<?>)firstElement;
String commandId = "eu.etaxonomy.taxeditor.editor.openTaxonEditor";
if(firstElement instanceof TaxonBase<?>){
TaxonBase<?> taxonBase = (TaxonBase<?>)firstElement;
String commandId = "eu.etaxonomy.taxeditor.editor.openTaxonEditor";