+ replaceMappings(align);
+ this.alignment = align;
+ }
+
+ /**
+ * Replace any codon mappings for this viewport with those for the given
+ * viewport
+ *
+ * @param align
+ */
+ public void replaceMappings(AlignmentI align)
+ {
+ StructureSelectionManager ssm = StructureSelectionManager
+ .getStructureSelectionManager(Desktop.instance);
+
+ /*
+ * Deregister current mappings (if any)
+ */
+ if (alignment != null)