From: jprocter Date: Sun, 17 Jun 2007 13:06:23 +0000 (+0000) Subject: enable mouseover between DNA coding regions and translated peptide location X-Git-Tag: Release_2_4~368 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a40fca93ef69fc19358165c4b15707e1e52984af;p=jalview.git enable mouseover between DNA coding regions and translated peptide location --- diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index cbb19fb..eb5ef20 100755 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -29,6 +29,7 @@ import jalview.bin.*; import jalview.datamodel.*; import jalview.schemes.*; +import jalview.structure.StructureSelectionManager; /** * DOCUMENT ME! @@ -916,7 +917,15 @@ public class AlignViewport */ public void setAlignment(AlignmentI align) { + if (alignment!=null && alignment.getCodonFrames()!=null) + { + StructureSelectionManager.getStructureSelectionManager().removeMappings(alignment.getCodonFrames()); + } this.alignment = align; + if (alignment.getCodonFrames()!=null) + { + StructureSelectionManager.getStructureSelectionManager().addMappings(alignment.getCodonFrames()); + } } /**