From: <ha...@us...> - 2012-03-18 18:45:35
|
Revision: 16904 http://jmol.svn.sourceforge.net/jmol/?rev=16904&view=rev Author: hansonr Date: 2012-03-18 18:45:28 +0000 (Sun, 18 Mar 2012) Log Message: ----------- Tools -- JSpecView not working today Modified Paths: -------------- trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/Properties/Jmol-resources.properties trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/StatusListener.java Modified: trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/Properties/Jmol-resources.properties =================================================================== --- trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/Properties/Jmol-resources.properties 2012-03-18 11:03:08 UTC (rev 16903) +++ trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/Properties/Jmol-resources.properties 2012-03-18 18:45:28 UTC (rev 16904) @@ -166,7 +166,7 @@ animateMenuImage=animateButton.png vibrateMenuImage=vibrateButton.gif atomsetchooserImage=atomSetChooserButton.png -openJSpecViewScript=sync on; vibration scale 0.1; sync > "JSpecView:" +openJSpecViewScript=sync on; vibration scale 0.1; sync . "JSpecView:" #graphImage=graphButton.gif #crystpropImage=crystalButton.gif Modified: trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/StatusListener.java =================================================================== --- trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/StatusListener.java 2012-03-18 11:03:08 UTC (rev 16903) +++ trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/StatusListener.java 2012-03-18 18:45:28 UTC (rev 16904) @@ -162,7 +162,7 @@ notifyAtomPicked(strInfo); break; case SYNC: - if (strInfo != null && strInfo.startsWith("JSpecView")) { + if (strInfo != null && strInfo.toLowerCase().startsWith("jspecview")) { setJSpecView(strInfo.substring(9).trim()); return; } @@ -360,8 +360,9 @@ } if (!jSpecViewFrame.isVisible() && peaks.toLowerCase().startsWith("hidden")) jSpecViewFrame.setVisible(true); - if (peaks.length() > 0) - jSpecViewFrame.syncScript(peaks); + if (peaks.length() == 0) + peaks = "HIDDEN false"; + jSpecViewFrame.syncScript(peaks); } public void register(String id, JmolSyncInterface jsi) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |