merge
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 31 May 2016 16:56:31 +0000 (17:56 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Tue, 31 May 2016 16:56:31 +0000 (17:56 +0100)
1  2 
src/jalview/gui/AlignFrame.java

@@@ -1313,7 -1313,6 +1313,7 @@@ public class AlignFrame extends GAlignF
  
      if (viewport.hasHiddenColumns() && !settings.isExportHiddenColumns())
      {
 +      viewport.setExportHiddenSeqs(settings.isExportHiddenSequences());
        omitHidden = viewport.getViewAsString(false);
      }
  
      return showp;
    }
  
+   /**
+    * Finds and displays cross-references for the selected sequences (protein
+    * products for nucleotide sequences, dna coding sequences for peptides).
+    * 
+    * @param sel
+    *          the sequences to show cross-references for
+    * @param dna
+    *          true if from a nucleotide alignment (so showing proteins)
+    * @param source
+    *          the database to show cross-references for
+    */
    protected void showProductsFor(final SequenceI[] sel, final boolean dna,
            final String source)
    {
                  System.err.println("Failed to make CDS alignment");
                }
                al.getCodonFrames().clear();
-               al.getCodonFrames().addAll(copyAlignment.getCodonFrames());
+               al.addCodonFrames(copyAlignment.getCodonFrames());
+               al.addCodonFrames(cf);
  
                /*
                 * pending getting Embl transcripts to 'align', 
              {
                copyAlignment = AlignmentUtils.makeCopyAlignment(
                        sequenceSelection, xrefs.getSequencesArray());
-               copyAlignment.getCodonFrames().addAll(cf);
+               copyAlignment.addCodonFrames(cf);
+               al.addCodonFrames(copyAlignment.getCodonFrames());
+               al.addCodonFrames(cf);
              }
              copyAlignment.setGapCharacter(AlignFrame.this.viewport
                      .getGapCharacter());