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

« Previous Version 6 Next »

Groovy Monkey is a port of the Eclipse 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 except that the project update site is located at Eclipse v3.2 or Eclipse v3.1.2 and has three new additions.

Requirements

Eclipse Version compatibility

(tick) Eclipse 3.1 : working update site
(tick) Eclipse 3.2 : working update site

Java Version compatibility

(error) 1.4
(tick) 5.0
(tick) 6.0

Addition one: LANG metadata keyword

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.

Addition two: Outline view

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.

Addition three: Groovy SWT and Launch Manager DOMs

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

Here is an example of a script that uses the Launch Configuration Manager DOM along with the JFace/SWT DOM and the Console output DOM. It prints out the list of all your available launch configurations and allows you to select which ones you wish to string together.

LaunchManager.em
  • No labels