added simple stdout debug function
authorjprocter <Jim Procter>
Thu, 5 May 2011 13:40:20 +0000 (13:40 +0000)
committerjprocter <Jim Procter>
Thu, 5 May 2011 13:40:20 +0000 (13:40 +0000)
src/jalview/structure/StructureSelectionManager.java

index 492907b..502c68e 100644 (file)
@@ -30,6 +30,21 @@ public class StructureSelectionManager
 
   StructureMapping[] mappings;
 
+  /**
+   * debug function - write all mappings to stdout
+   */
+  public void reportMapping() {\r
+    if (mappings==null)\r
+    {\r
+      System.err.println("reportMapping: No PDB/Sequence mappings.");\r
+    }else{\r
+      System.err.println("reportMapping: There are "+mappings.length+" mappings.");\r
+      for (int m=0;m<mappings.length;m++)\r
+      {\r
+        System.err.println("mapping "+m+" : "+mappings[m].pdbfile);\r
+      }\r
+    }\r
+  }\r
   Hashtable mappingData = new Hashtable();
 
   public static StructureSelectionManager getStructureSelectionManager()