Today it once more was the time where I had to generate Test-Data and for this purpose I had to create UUIDs. My first reaction was to write a small program which was generating some UUIDs i could use like Lars is showing in one of his blog entries which was what I had done before already number-times.
Today I decided against and to fix this problem for all times. So I wrote a highly sophisticated Plug-In 🙂 for my favorite IDE named Eclipse:
Though the Plug-In Code holds a lot of my personal know how I finally decided to make it available to everyone under EPL and upload the code to to EclipseLabs.org in a new project. If you are in need of generating UUIDs inside your Eclipse Env you can simply install the Plug-In using this update-site.
nice, and I’m always googling for “uuid generator online”….
What’s the problem with the implementation in EcoreUtil. generateUUID()?
none – did I say there’s a problem with that one? The reason for the plug-in I wrote is to generate an UUID and allow me to insert it in a file e.g. a test setup where the UUID has to be static
Hi – tried to install the plugin on eclipse galileo (Build 20100218-1602), fails with the following error:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,at.bestsolution.eclipse.uuidgen,18.104.22.168010201610.
Artifact not found: org.eclipse.update.feature,at.bestsolution.eclipse.uuidgen.feature,22.214.171.124010201610.
any ideas what’s going wrong? I’m using the following url as software site:
Hm – it looks like the problem is that my artifacts.jar also holds a link to an older version of the export. I only tried the installation in 3.6 and there it worked without problems. I’ll regenerate them and upload them once more. I’ll ping here when done.
Why not make it a menu item somewhere? Why not make it write the value to the current file at the current cursor position?
No real reason – you are free to contribute it.