Skip to content
Browse files

Fixed the cheat sheet so that it can download, open, and run a script…

… from Gist.

Signed-off-by: jonalv <jonathan.alvarsson@gmail.com>
  • Loading branch information...
1 parent bda22ab commit 2a7a4e90e5b52bc70550d304c2301534207071e5 @KlasJoensson KlasJoensson committed with jonalv Jan 19, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugins/net.bioclipse.cdk.ui/cheatsheets/sampleCDKscripts.xml
View
10 plugins/net.bioclipse.cdk.ui/cheatsheets/sampleCDKscripts.xml
@@ -10,15 +10,15 @@
<item
title="Step 1: Download and visualize proteins">
<description>
- The following script downloads, opens, and runs a Gist (95779 to retrieve a
+ The following script downloads, opens, and runs a Gist (95779) to retrieve a
PDB via a Web service from the EBI databases, open it with Jmol, and do
some custom visualization.
</description>
<action
pluginId="net.bioclipse.scripting.ui"
class="net.bioclipse.scripting.ui.actions.ScriptAction"
- param1="res=gist.download(95779,&quot;/Virtual/dnaiso.js&quot;); ui.open(res); js.executeFile(res)"/>
+ param1="res=gist.download(95779); itr = res.iterator(); while (itr.hasNext()) { file = itr.next(); ui.open(file); js.executeFile(file) }"/>
</item>
@@ -33,7 +33,7 @@
<action
pluginId="net.bioclipse.scripting.ui"
class="net.bioclipse.scripting.ui.actions.ScriptAction"
- param1="res=gist.download(95790,&quot;/Virtual/multimol.js&quot;); ui.open(res); js.executeFile(res)"/>
+ param1="res=gist.download(95790); itr = res.iterator(); while (itr.hasNext()) { file = itr.next(); ui.open(file); js.executeFile(file) }"/>
</item>
@@ -48,7 +48,7 @@
<action
pluginId="net.bioclipse.scripting.ui"
class="net.bioclipse.scripting.ui.actions.ScriptAction"
- param1="res=gist.download(95755,&quot;/Virtual/gencoords.js&quot;); ui.open(res); js.executeFile(res)"/>
+ param1="res=gist.download(95755); itr = res.iterator(); while (itr.hasNext()) { file = itr.next(); ui.open(file); js.executeFile(file) }"/>
</item>
@@ -63,7 +63,7 @@
<action
pluginId="net.bioclipse.scripting.ui"
class="net.bioclipse.scripting.ui.actions.ScriptAction"
- param1="res=gist.download(96594,&quot;/Virtual/buildmol.js&quot;); ui.open(res); js.executeFile(res)"/>
+ param1="res=gist.download(96594); itr = res.iterator(); while (itr.hasNext()) { file = itr.next(); ui.open(file); js.executeFile(file) }"/>
</item>
</cheatsheet>

1 comment on commit 2a7a4e9

@egonw
Bioclipse member
egonw commented on 2a7a4e9 Jan 20, 2012

Nice, thanx!

Please sign in to comment.
Something went wrong with that request. Please try again.