Skip to content

Commit

Permalink
Fixed the cheat sheet so that it can download, open, and run a script…
Browse files Browse the repository at this point in the history
… from Gist.

Signed-off-by: jonalv <jonathan.alvarsson@gmail.com>
  • Loading branch information
KlasJoensson authored and jonalv committed Jan 20, 2012
1 parent bda22ab commit 2a7a4e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/net.bioclipse.cdk.ui/cheatsheets/sampleCDKscripts.xml
Expand Up @@ -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>

Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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
Copy link
Member

@egonw egonw commented on 2a7a4e9 Jan 20, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanx!

Please sign in to comment.