StructureSelectionManager ssm, VamsasSource source)
{
/*
- * ...work in progress... do nothing unless we are a 'slave' of the source
- * May replace this with direct calls not via SSM.
+ * ...work in progress... do nothing unless we are a 'complement' of the
+ * source May replace this with direct calls not via SSM.
*/
if (source instanceof AlignViewportI
- && ((AlignViewportI) source).getSlave() == this)
+ && ((AlignViewportI) source).getCodingComplement() == this)
{
// ok to continue;
}
AlignFrame.DEFAULT_HEIGHT);
/*
- * Set the cDNA to list for edits on the protein.
+ * Set the frames to list for each other's edit and sort commands.
*/
ssm.addCommandListener(cdnaFrame.getViewport());
+ ssm.addCommandListener(proteinFrame.getViewport());
/*
- * cDNA is 'slaved' to edits, selection, sorting, show/hide on protein
+ * cDNA view will mirror edits, selection, sorting, show/hide on protein
*/
- proteinFrame.getViewport().setSlave(cdnaFrame.getViewport());
+ proteinFrame.getViewport().setCodingComplement(cdnaFrame.getViewport());
}
return true;