From: Jim Procter Date: Tue, 7 Oct 2014 16:22:43 +0000 (+0100) Subject: JAL-1421 remove Vector and pass a list X-Git-Tag: Jalview_2_9~171^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d0320a94aa69562144cce2cabc4aec4603cddd84;p=jalview.git JAL-1421 remove Vector and pass a list --- diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 7dcd3ac..ab7a07a 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -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) { diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index ec7b46e..cce98a1 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -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) {