From: jprocter Date: Mon, 23 Apr 2007 15:11:55 +0000 (+0000) Subject: distinct methods for getting references to selected sequences or getting new seuqence... X-Git-Tag: Release_2_3~186 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1b5ee75e7538b6229da397b28a91296e612d23e8;p=jalview.git distinct methods for getting references to selected sequences or getting new seuqence objects corresponding to selection. --- diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index f1b7be3..88a6e37 100755 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -1466,8 +1466,10 @@ public class AlignViewport } /** - * This method returns the a new SequenceI [] with - * the selection sequence and start and end points adjusted + * This method returns an array of new SequenceI objects + * derived from the whole alignment or just the current + * selection with start and end points adjusted + * @note if you need references to the actual SequenceI objects in the alignment or currently selected then use getSequenceSelection() * @return String[] */ public SequenceI[] getSelectionAsNewSequence() @@ -1477,6 +1479,10 @@ public class AlignViewport if (selectionGroup == null) { sequences = alignment.getSequencesArray(); + for (int i=0; i