From: <ha...@us...> - 2006-12-15 23:26:03
|
Revision: 6478 http://svn.sourceforge.net/jmol/?rev=6478&view=rev Author: hansonr Date: 2006-12-15 15:26:01 -0800 (Fri, 15 Dec 2006) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Viewer.java Modified: trunk/Jmol/src/org/jmol/viewer/Viewer.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Viewer.java 2006-12-15 23:00:22 UTC (rev 6477) +++ trunk/Jmol/src/org/jmol/viewer/Viewer.java 2006-12-15 23:26:01 UTC (rev 6478) @@ -838,7 +838,6 @@ public void setColorBackground(String colorName) { if (colorName == null || colorName.length() <= 0) return; - global.setParameterValue("backgroundColor", colorName); setBackgroundArgb(Graphics3D.getArgbFromString(colorName)); } @@ -2589,9 +2588,11 @@ return info; } - synchronized public String scriptCheck(String strScript) { - if (strScript == null) + boolean checking; + public String scriptCheck(String strScript) { + if (strScript == null || checking) return null; + checking = true; Object obj = eval.checkScriptSilent(strScript); if (obj instanceof String) return (String) obj; @@ -4612,4 +4613,18 @@ public int getSyncMode() { return statusManager.getSyncMode(); } + + /* + void debugStack(String msg) { + //what's the right way to do this? + try { + Logger.error(msg); + String t = null; + t.substring(3); + } catch (Exception e) { + e.printStackTrace(); + } + } + */ + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |