JAL-2794 reworked, everything routes via avport.sendselection now
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 22 Nov 2017 19:04:54 +0000 (19:04 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 22 Nov 2017 19:04:54 +0000 (19:04 +0000)
src/jalview/ext/archaeopteryx/JalviewBinding.java

index d2072cc..4cee6ea 100644 (file)
@@ -143,7 +143,6 @@ public final class JalviewBinding
           // IS NOT pressed
           {
             parentAvport.setSelectionGroup(null);
-            treeView.setFoundNodes0(null);
 
           }
           showNodeSelectionOnAlign(node);
@@ -202,7 +201,7 @@ public final class JalviewBinding
         }
 
       }
-      PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId());
+      treeView.repaint();
 
     }
 
@@ -241,10 +240,6 @@ public final class JalviewBinding
   @Override
   public void showNodeSelectionOnAlign(final PhylogenyNode node)
   {
-    if (treeView.getFoundNodes0() == null)
-    {
-      treeView.setFoundNodes0(new HashSet<Long>());
-    }
 
       if (node.isInternal())
       {
@@ -255,8 +250,7 @@ public final class JalviewBinding
       {
         showMatchingSequence(node);
       }
-    treeView.repaint();
-    PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId());
+
     }
 
 
@@ -272,7 +266,7 @@ public final class JalviewBinding
       long nodeId = nodeToMatch.getId();
       addOrRemoveInSet(treeView.getFoundNodes0(), nodeId);
       treeSelectionChanged(matchingSequence);
-      // parentAvport.sendSelection(); // this shouldn't be needed
+      parentAvport.sendSelection();
 
     }
   }
@@ -299,7 +293,7 @@ public final class JalviewBinding
       }
 
     }
-    // parentAvport.sendSelection(); // this shouldn't be needed
+    parentAvport.sendSelection();
 
 
   }