Entries Tagged as 'eclipse'

Wednesday, January 14th, 2009

Writing Portable Groovy Scripts with A Magic Runnable Jar

I’ve found myself using Java as a “scripting” language lately due to the necessity of working in mixed *nix and windows environments where I can’t count on a standard scripting language being installed like python,perl, or ruby. What’s more I either don’t have the rights to install a binary of said scripting languages or don’t [...]

Monday, December 29th, 2008

Regular Expression to Replace System.out.println with Log4j

This is nothing fancy, but may help some of you log4j newbies.
I found myself replacing a project's hideous System.out.println statements with log4j log calls.
Just do a File Search in eclipse , tick the regular expression box and do a Replace:

Find: System\.out\.println\("(.+?)"\);
Replace: log.info("\1");

Now you just have to go in and add your imports and your log [...]

Wednesday, August 27th, 2008

Eclipselink in J2SE RCP Applications

In this article I'll go over integrating EclipseLink into an RCP application. I will not explain every detail of the JPA specification however. The source code this article is partially based off of is currently pending IP Review for inclusion in the official EclipseLink project, however you may download it now from here. You can [...]

Tuesday, April 29th, 2008

Easily Add PropertyChangeSupport to Beans in Eclipse

If you plan on using JFace Databinding in SWT you will have to implement Property Change Support on all your Java Beans, (barf). I wasn't able to find a plugin that would do this in one click to a class so I came up with two ways to do it.
Here's a code template you [...]

Friday, April 11th, 2008

Automatically Add JavaDoc Comments in Eclipse

Recently while preparing to contribute some code to Eclipse I had to add a copyright comment to the top of every class. Enter JAutodoc it will go through and add Javadoc comments and other automated comments, the update site is:
http://jautodoc.sourceforge.net/update/
Screenshot:

Bookmark to: