Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Groovy Monkey is a port of the [Eclipse Dash|http://www.eclipse.org/dash/] tool Eclipse Monkey that enables you to write the script in Groovy instead of Javascript.  In fact you can write in Groovy, Beanshell, Ruby or Python.  The details are very similar to [Eclipse Monkey's|http://www.eclipse.org/dash/monkey-help.php] except that the project update site is located at [http://groovy-monkey.sourceforge.net/update] and has three new additions.

First, there is a new metadata keyword called LANG, which as is implied, determines what scripting language you wish to use.  Here is an example of an Eclipse Monkey base example ported to Groovy:

FindSystemPrints_groovy.em

Notice the LANG tag, that is all there is to that.

Secondly, the outline view is populated showing the binding variable names and types with their publicly available methods and fields.  This can be useful since the DOMs are loaded on your eclipse ide as plugins and not in your workspace view.  Even if you were to load in the DOMs into your workspace, there is still a great deal of switching that must be done.

Thirdly, there are new DOMs that are located on the update site that include direct access to a console for output, enable you to script your launch configurations together and a wrapper for the Groovy SWT project as a DOM.

 Here is an example of a script, copied from the examples given in Groovy-SWT, ported into Groovy Monkey.

SWTTest.em
  • No labels