refactor to allow distinct StructureSelectionManager instances for
[jalview.git] / src / MCview / AppletPDBCanvas.java
old mode 100755 (executable)
new mode 100644 (file)
index c82c331..756f2a5
@@ -1,5 +1,5 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
  * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
@@ -132,7 +132,7 @@ public class AppletPDBCanvas extends Panel implements MouseListener,
     this.pdbentry = pdbentry;
     this.sequence = seq;
 
-    ssm = StructureSelectionManager.getStructureSelectionManager();
+    ssm = StructureSelectionManager.getStructureSelectionManager(ap.av.applet);
 
     try
     {
@@ -177,8 +177,10 @@ public class AppletPDBCanvas extends Panel implements MouseListener,
       // the start and end points.
       // Align the sequence to the pdb
       // TODO: DNa/Pep switch
-      AlignSeq as = new AlignSeq(sequence, ((PDBChain) pdb.chains
-              .elementAt(i)).sequence, ((PDBChain) pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA : AlignSeq.PEP);
+      AlignSeq as = new AlignSeq(sequence,
+              ((PDBChain) pdb.chains.elementAt(i)).sequence,
+              ((PDBChain) pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA
+                      : AlignSeq.PEP);
       as.calcScoreMatrix();
       as.traceAlignment();
       PrintStream ps = new PrintStream(System.out)
@@ -1102,7 +1104,8 @@ public class AppletPDBCanvas extends Panel implements MouseListener,
   // /StructureListener
   public String[] getPdbFile()
   {
-    return new String[] { pdbentry.getFile() };
+    return new String[]
+    { pdbentry.getFile() };
   }
 
   String lastMessage;
@@ -1189,4 +1192,11 @@ public class AppletPDBCanvas extends Panel implements MouseListener,
     repaint();
   }
 
+  @Override
+  public void releaseReferences(Object svl)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
 }