I wrote a simple DOM to write message to Eclipse console from a Monkey Script.
I have not yet created an update site for it so you have do download it and install it in your plugins directory manually.
It provides a out variable that you can use to write to a console.
Here is the mandatory “Hello, World” example:
--- Came wiffling through the eclipsey wood ---
/*
* Menu: Console > Hello
* Kudos: Jeff Mesnil
* License: EPL 1.0
* DOM: http://jmesnil.net/eclipse/updates/net.jmesnil.doms
*/
function main() {
out.print("Hello, ").println("World");
}
--- And burbled as it ran! ---
and its output

I’m trying to display a message in Eclipse global status bar when hovering on a menu item.
I had the part to display the message (but I’m pretty sure it’s the ugliest way I could have found):
if (window instanceof ApplicationWindow) {
ApplicationWindow appWindow = (ApplicationWindow)window;
appWindow.setStatus(message);
}
But I can’t find how to run that code when hovering on a menu item.
I’ve got the complete control on the menu and its items creation but I don’t see where I can plug my code so
that it is executed when hovering on a item of my menu.
The reason I need that code is that I’d like to display a description of a Eclipse Monkey script when hovering on a menu item in the Monkey menu (see bug #132601 for a description of this enhancement).
If anyone has an idea, I’d appreciate.