import jalview.datamodel.*;
import jalview.schemes.*;
+import jalview.structure.StructureSelectionManager;
/**
* DOCUMENT ME!
*/
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());
+ }
}
/**