From: Egon W. <eg...@us...> - 2004-05-03 19:45:18
|
Update of /cvsroot/jmol/Jmol/src/org/jmol/adapter/smarter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14339/src/org/jmol/adapter/smarter Modified Files: CmlReader.java Log Message: Added CML example with formal charge and added reading of it to the CmlReader Index: CmlReader.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/jmol/adapter/smarter/CmlReader.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- CmlReader.java 3 May 2004 08:50:50 -0000 1.11 +++ CmlReader.java 3 May 2004 19:45:05 -0000 1.12 @@ -188,6 +188,8 @@ atom.z = parseFloat(attValue); } else if ("elementType".equals(attLocalName)) { atom.elementSymbol = attValue; + } else if ("formalCharge".equals(attLocalName)) { + atom.formalCharge = parseInt(attValue); } } atom.modelNumber = moleculeCount; |