views:

1523

answers:

3

After much searching, I found the download for the eclipse version of jalopy. Is this compatible with Eclipse 3.4? It's dated 2006.

I've copied the extracted folder to my plugins directory and run eclipse -clean, but I can't find anything matching 'jalopy' in preferences.

If it's not compatible, are there any (free) alternatives?

A: 

i'm told that open source version of jalopy is not for commercial use.

eclipse itself has good source code formatting capabilities. Go to java | preferences/settings. type format and you should see the various options.

anjanb
Eclipse's code formatter is still getting something wrong for me, hence the need to find an alternative.
tunaranch
Oh, and the version of the plugin on sourceforge is marked as being under the BSD license, so it's not 'not for commercial use'.
tunaranch
A: 

The answer is 'yes'. Preferences are in Window > Jalopy Preferences, and it's run from the right click context menu. Seems a little buggy, though.

tunaranch
A: 

Just an update:

Note: the latest eclipse3.5 Galileo code formatter now:

  • supports most of Jalopy formatting option.
  • has made quite a few improvement on formatters (look for the term 'formatter' in those building notes of jdt-core.

It also can be run from the command-line if needed.

For a specific formatting option which would not be correctly managed by eclipse, you can define a codeFormatter extension point. More practical details in this SO question.

VonC