Update: This has been fixed in MyEclipse 7.1.
There is a bug in MyEclipse 7.0 which causes the template configuration preference to quit functioning. When I go into the template configuration, I get a dialog with the heading "Could Not Accept Changes" and the following error message:
The currently displayed page contains invalid values.
And the configuration page is almost completely blank. It just says "Create, edit or remove templates:".
This has been reported at this forum topic and they are aware of the bug. It exists in 7.0 M2 and 7.0 GA. MyEclipse 6.5 (w/ Eclipse 3.3) doesn't have this problem.
I use this rather inconvenient workaround to get around this:
My workaround is to use a clean copy of Eclipse (that doesn't have MyEclipse installed) with its own workspace, and edit my custom templates in that copy. Eclipse stores custom templates in this file (along with a lot of other configuration):
ECLIPSE_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
So what I do is I copy the line that starts with "org.eclipse.jdt.ui.text.custom_templates=" followed by XML from the clean copy to the one with MyEclipse installed. And restart Eclipse to pick up the change.
If you try this workaround make sure to make a backup of this file before you edit it, just in case something goes wrong.
Comments
Nilesh, We feel really badly
Nilesh,
We feel really badly about letting this obnoxious bug slip by the QA department -- it's a bit slippery, as it depends on the projects you have in the workspace if that works or not. We do appreciate you taking the time to blog a workaround for the other MyEclipse users that are running into this before we get a patch release out.