JAL-1231 add chain ID
[jalview.git] / src / jalview / ext / jmol / PDBFileWithJmol.java
index 77755f8..c5ab86f 100644 (file)
@@ -18,6 +18,7 @@
 package jalview.ext.jmol;
 
 import java.io.IOException;
+import java.util.Hashtable;
 import java.util.Map;
 
 import org.jmol.api.JmolStatusListener;
@@ -171,6 +172,8 @@ public class PDBFileWithJmol extends AlignFile implements
                   pdbe.setFile(getDataName());
                   pdbe.setId(getDataName());
                   sq.addPDBId(pdbe);
+                  pdbe.setProperty(new Hashtable());
+                  pdbe.getProperty().put("CHAIN",""+_lastChainId);
                   seqs.add(sq);
                   if (!(biopoly.isDna() || biopoly.isRna()))
                   {