AlignmentPanel ap, String protocol)
{
this.ap = ap;
- jmb = new AppletJmolBinding(this, new PDBEntry[]
+ jmb = new AppletJmolBinding(this, ap.getStructureSelectionManager(), new PDBEntry[]
{ pdbentry }, new SequenceI[][]
{ seq }, new String[][]
{ chains }, protocol);
}
String alreadyMapped = StructureSelectionManager
- .getStructureSelectionManager().alreadyMappedToFile(
+ .getStructureSelectionManager(ap.av.applet).alreadyMappedToFile(
pdbentry.getId());
MCview.PDBfile reader = null;
if (alreadyMapped != null)
{
- reader = StructureSelectionManager.getStructureSelectionManager()
+ reader = StructureSelectionManager.getStructureSelectionManager(ap.av.applet)
.setMapping(seq, chains, pdbentry.getFile(), protocol);
// PROMPT USER HERE TO ADD TO NEW OR EXISTING VIEW?
// FOR NOW, LETS JUST OPEN A NEW WINDOW
{
for (int s = 0; s < jmb.pdbentry.length; s++)
{
- sb.append(StructureSelectionManager
- .getStructureSelectionManager().printMapping(
+ sb.append(jmb.printMapping(
jmb.pdbentry[s].getFile()));
sb.append("\n");
}