Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dash » Help with Monkey script (IllegalArgumentException calling Eclipse API method)
Help with Monkey script (IllegalArgumentException calling Eclipse API method) [message #560455] Thu, 08 November 2007 02:12
Phillip Rhodes is currently offline Phillip RhodesFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all, I'm working on a simple Monkey script, the intent
of which is to generate a UUID and put it on the clipboard.
I have this so far, which at first blush looks like
it should work. But line 18 blows up with an IllegalArgumentExeption.

Any thoughts?

* Menu: Gen > UUID
* Kudos: Whoever
* License: EPL 1.0

function main() {

clipboard = new swt.widgets.Display.getCurrent());

transfers = java.lang.reflect.Array.newInstance(, 1);
transfers[0] =;

data = java.lang.reflect.Array.newInstance(java.lang.Object, 1);
data[0] = java.util.UUID.randomUUID();

clipboard.setContents(data, transfers); /* THIS LINE BLOWS UP */
clipboard.dispose(); tion(
"Your new UUID",



Previous Topic:Tables, Views and Objects
Next Topic:Help with Monkey script (IllegalArgumentException calling Eclipse API method)
Goto Forum:

Current Time: Mon Oct 24 23:52:42 GMT 2016

Powered by FUDForum. Page generated in 0.02308 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software