JAL-207 pairwise alignment sequence contexts propergation bugfix
authorCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 26 Nov 2014 16:57:23 +0000 (16:57 +0000)
committerCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Wed, 26 Nov 2014 16:57:23 +0000 (16:57 +0000)
src/jalview/appletgui/PairwiseAlignPanel.java
src/jalview/gui/PairwiseAlignPanel.java

index 9afc70b..5a3b56c 100644 (file)
  */
 package jalview.appletgui;
 
-import java.util.*;
-
-import java.awt.*;
-import java.awt.event.*;
-
-import jalview.analysis.*;
-import jalview.datamodel.*;
+import jalview.analysis.AlignSeq;
+import jalview.datamodel.Alignment;
+import jalview.datamodel.Sequence;
+import jalview.datamodel.SequenceI;
 import jalview.util.MessageManager;
 
+import java.awt.BorderLayout;
+import java.awt.Button;
+import java.awt.Panel;
+import java.awt.ScrollPane;
+import java.awt.TextArea;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Vector;
+
 public class PairwiseAlignPanel extends Panel implements ActionListener
 {
   Vector sequences = new Vector();
@@ -89,13 +95,8 @@ public class PairwiseAlignPanel extends Panel implements ActionListener
         totscore = totscore + scores[i][j];
 
         textarea.append(as.getOutput());
-        seq = new Sequence(as.getS1().getName(), as.getAStr1(), as.getS1()
-                .getStart(), as.getS1().getEnd());
-        sequences.addElement(seq);
-
-        seq = new Sequence(as.getS2().getName(), as.getAStr2(), as.getS2()
-                .getStart(), as.getS2().getEnd());
-        sequences.addElement(seq);
+        sequences.add(as.getAlignedSeq1());
+        sequences.add(as.getAlignedSeq1());
       }
     }
 
index 82f0120..69b6ba6 100755 (executable)
@@ -99,13 +99,8 @@ public class PairwiseAlignPanel extends GPairwiseAlignPanel
         totscore = totscore + scores[i][j];
 
         textarea.append(as.getOutput());
-        seq = new Sequence(as.getAlignedSeq1().getName(), as.getAStr1(), as
-                .getAlignedSeq1().getStart(), as.getAlignedSeq1().getEnd());
-        sequences.add(seq);
-
-        seq = new Sequence(as.getAlignedSeq2().getName(), as.getAStr2(), as
-                .getAlignedSeq2().getStart(), as.getAlignedSeq2().getEnd());
-        sequences.add(seq);
+        sequences.add(as.getAlignedSeq1());
+        sequences.add(as.getAlignedSeq1());
       }
     }