UUID-Generator Plugin


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.

Advertisements
This entry was posted in Announcements. Bookmark the permalink.

7 Responses to UUID-Generator Plugin

  1. jacek says:

    nice, and I’m always googling for “uuid generator online”….

  2. Stephan Zehrer says:

    What’s the problem with the implementation in EcoreUtil. generateUUID()?

    • Tom Schindl says:

      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

  3. Florian says:

    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,1.0.0.201010201610.
    http://svn.codespot.com/a/eclipselabs.org/uuid-gen/updatesite/plugins/at.bestsolution.eclipse.uuidgen_1.0.0.201010201610.jar
    Artifact not found: org.eclipse.update.feature,at.bestsolution.eclipse.uuidgen.feature,1.0.0.201010201610.
    http://svn.codespot.com/a/eclipselabs.org/uuid-gen/updatesite/features/at.bestsolution.eclipse.uuidgen.feature_1.0.0.201010201610.jar

    any ideas what’s going wrong? I’m using the following url as software site:
    http://svn.codespot.com/a/eclipselabs.org/uuid-gen/updatesite/

    • Tom Schindl says:

      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.

  4. Casey G says:

    Why not make it a menu item somewhere? Why not make it write the value to the current file at the current cursor position?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s