- 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(StructureSelectionManagerProvider context)
+ public void reportMapping()
+ {
+ if (mappings == null)
+ {
+ System.err.println("reportMapping: No PDB/Sequence mappings.");
+ }
+ else
+ {
+ System.err.println("reportMapping: There are " + mappings.length
+ + " mappings.");
+ for (int m = 0; m < mappings.length; m++)
+ {
+ System.err.println("mapping " + m + " : " + mappings[m].pdbfile);
+ }
+ }
+ }
+
+ /**
+ * map between the PDB IDs (or structure identifiers) used by Jalview and the
+ * absolute filenames for PDB data that corresponds to it
+ */
+ HashMap<String, String> pdbIdFileName = new HashMap<String, String>(),
+ pdbFileNameId = new HashMap<String, String>();
+
+ public void registerPDBFile(String idForFile, String absoluteFile)
+ {
+ pdbIdFileName.put(idForFile, absoluteFile);
+ pdbFileNameId.put(absoluteFile, idForFile);
+ }
+
+ public String findIdForPDBFile(String idOrFile)