Is there a CTRL+space -like way of \"auto-constructing\" a switch case around a given Java Enum in Eclipse? I\'d like a stub with all Enum cases...
You can add your own code templates using: Windows->Preferences->Java->Editor->Templates.
Once you have added a code template, type enough characters of the template name to make it unique; type CTRL+Space; and your defined code will replace the template name characters.
The template for switch is predefined in Eclipse Galileo. sw+CTRL+Space should give you a switch statement. You might have to adapt an existing template to give you the switch-enum combination.