Community
Participate
Working Groups
The solution in bug 249347 must be exposed as a preference, so users can choose either statically, or dynamically compiled JET templates.
We should think about where to put this property in the UI. One approach is to create a new top-level "Java EE" preference page. It can be used later for other Java EE related preferences. The XDoclet preferences page can be move as a child of this new Java EE preference page. Other candidate is JPA. Link can be created to Web/JSP files and Web/JavaServer Faces Tools.
Created attachment 120668 [details] patch I propose the following patch
Milen, the patch is good. Just some cosmetic changes are needed. 1. Replace all "JEE" strings with "Java EE". If "JEE" occurs in an identifier, then replace it with "JavaEE". 2. Replace the "JEE preferences page" string with "General settings for Java EE development:". 3. Replace "Jet templates preferences" with "JET templates". 4. Give more meaningful names to the "JETTemplatesPreferencesPage_X" NL keys.
Created attachment 122535 [details] patch with corrected messages This new patch is changed messages according to Kaloyan's comment.
Thank you, Milen. The UI looks much better. I have a few more remarks on the code. * The "Restore Defaults" button does not work. I guess you should implement performDefaults() in the preference page class. * JETTemplatesReferencePage has a typo in the name. But it is event better to rename it to JavaEEPreferencePage. * The org.eclipse.jst.j2ee.internal.iu.preference java package should be called org.eclipse.jst.j2ee.internal.iu.preferences. * The id of the page in plugin.xml should be "org.eclipse.jst.j2ee.ui.preferencePages.JavaEE". Let's follow the pattern established by the Platform. * define the NLS constants in j2ee_ui.properties and J2EEUIMessages in the style JAVA_EE_PREFERENCE_PAGE_DESCRIPTION. Avoid curtailments. Use this constants in the preference page class. * Avoid the usage of the deprecated Preferences. Replace it with IPreferenceStore or IPreferencesService. * Add a spacer between the page description and the JET templates group. Spacer == label with no text.
Created attachment 123065 [details] patch with corrections Comment taken in consideration except about the deprecated class
Created attachment 123173 [details] patch Previous attachment was of a wrong file.
Thanks, Milen. The latest patch is committed to HEAD and released to build.