JAL-1421 remove Vector and pass a list
authorJim Procter <j.procter@dundee.ac.uk>
Tue, 7 Oct 2014 16:22:43 +0000 (17:22 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Tue, 7 Oct 2014 16:22:43 +0000 (17:22 +0100)
src/jalview/appletgui/AnnotationLabels.java
src/jalview/gui/AnnotationLabels.java

index 7dcd3ac..ab7a07a 100755 (executable)
@@ -648,11 +648,11 @@ public class AnnotationLabels extends Panel implements ActionListener,
         }
         else if (aa[selectedRow].sequenceRef != null)
         {
-          Vector sr = new Vector();
-          sr.addElement(aa[selectedRow].sequenceRef);
           if (evt.getClickCount() == 1)
           {
-            ap.seqPanel.ap.idPanel.highlightSearchResults(sr);
+            ap.seqPanel.ap.idPanel.highlightSearchResults(Arrays
+                    .asList(new SequenceI[]
+                    { aa[selectedRow].sequenceRef }));
           }
           else if (evt.getClickCount() >= 2)
           {
index ec7b46e..cce98a1 100755 (executable)
@@ -509,11 +509,11 @@ public class AnnotationLabels extends JPanel implements MouseListener,
         }
         else if (aa[selectedRow].sequenceRef != null)
         {
-          Vector sr = new Vector();
-          sr.addElement(aa[selectedRow].sequenceRef);
           if (evt.getClickCount() == 1)
           {
-            ap.seqPanel.ap.idPanel.highlightSearchResults(sr);
+            ap.seqPanel.ap.idPanel.highlightSearchResults(Arrays
+                    .asList(new SequenceI[]
+                    { aa[selectedRow].sequenceRef }));
           }
           else if (evt.getClickCount() >= 2)
           {