- added double click for type designations
authorPatric Plitzner <p.plitzner@bgbm.org>
Wed, 18 Feb 2015 14:20:26 +0000 (14:20 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Wed, 18 Feb 2015 14:20:26 +0000 (14:20 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/TaxonAssociationDetailElement.java

index 3cfb86048935c2a9a2a3c848a731a168406f37e8..90c462a4f2e72f5fd610591cf82611ffcbbd9dda 100644 (file)
@@ -123,8 +123,8 @@ public class TaxonAssociationDetailElement extends AbstractCdmDetailElement<Deri
      */
     @Override
     public void doubleClick(DoubleClickEvent event) {
-        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";