In Eclipse 3.5, under Windows -> Preferences -> Java > Editor -> Templates, I can add code templates. However, these templates can only contain snippets which I can insert into an existing Java class.
Is it possible to create templates for whole Java classes, which I can add for example using File -> New -> My-Java-Class?
You can add ‘new file wizards‘ to eclipse, but you’ll need to write a new plugin to do it. I don’t know of an easy way to do this at runtime, in the style of MS Office templates, which I think is what you’re trying to do.
A new mechanism for templates might be a useful plugin, but I can’t find anything that does that already.