Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 122535 Details for
Bug 250128
Preference for statically compiled JET templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch with corrected messages
patch_pref_page1.txt (text/plain), 5.86 KB, created by
Milen Manov
on 2009-01-14 09:43:51 EST
(
hide
)
Description:
patch with corrected messages
Filename:
MIME Type:
Creator:
Milen Manov
Created:
2009-01-14 09:43:51 EST
Size:
5.86 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee.ui >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee.ui/plugin.xml,v >retrieving revision 1.126 >diff -u -r1.126 plugin.xml >--- plugin.xml 26 Nov 2008 22:33:34 -0000 1.126 >+++ plugin.xml 14 Jan 2009 14:40:42 -0000 >@@ -803,5 +803,13 @@ > provider="wtp-user-library-provider" > class="org.eclipse.jst.j2ee.internal.ui.WtpUserLibraryProviderInstallPanel"/> > </extension> >+ <extension >+ point="org.eclipse.ui.preferencePages"> >+ <page >+ class="org.eclipse.jst.j2ee.internal.ui.preference.JETTemplatesReferencesPage" >+ id="org.eclipse.jst.j2ee.ui.preference.JavaEE" >+ name="Java EE"> >+ </page> >+ </extension> > > </plugin> >Index: property_files/j2ee_ui.properties >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee.ui/property_files/j2ee_ui.properties,v >retrieving revision 1.52 >diff -u -r1.52 j2ee_ui.properties >--- property_files/j2ee_ui.properties 4 Nov 2008 18:18:42 -0000 1.52 >+++ property_files/j2ee_ui.properties 14 Jan 2009 14:40:42 -0000 >@@ -334,6 +334,9 @@ > JAVAUTILITY_MAIN_PG_TITLE=Java Component > JAVAUTILITY_MAIN_PG_DESC=Create a Java Component > JAVAUTIL_COMPONENT_WIZ_TITLE=New Java Utility Module >+JavaEEPrefPageName=General settings for Java EE development: >+JetTemplates=JET templates >+DynTranslationButtonName=Use dynamic translation of JET templates > AVAILABLE_J2EE_COMPONENTS= Available Java EE modules > EXTERNAL_JAR=Add External JARs... > PROJECT_JAR=Add JARs... >Index: j2ee_ui/org/eclipse/jst/j2ee/internal/plugin/J2EEUIMessages.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/plugin/J2EEUIMessages.java,v >retrieving revision 1.28 >diff -u -r1.28 J2EEUIMessages.java >--- j2ee_ui/org/eclipse/jst/j2ee/internal/plugin/J2EEUIMessages.java 4 Nov 2008 18:18:43 -0000 1.28 >+++ j2ee_ui/org/eclipse/jst/j2ee/internal/plugin/J2EEUIMessages.java 14 Jan 2009 14:40:42 -0000 >@@ -211,7 +211,9 @@ > public static final String CONTENT_FOLDER = "102"; //$NON-NLS-1$ > > public static final String HOVER_HELP_FOR_DISABLED_LIBS = "HOVER_HELP_FOR_DISABLED_LIBS"; //$NON-NLS-1$ >- >+ public static final String JavaEEPrefPageName = "JavaEEPrefPageName"; //$NON-NLS-1$ >+ public static final String JetTemplates = "JetTemplates"; //$NON-NLS-1$ >+ public static final String DynTranslationButtonName = "DynTranslationButtonName"; //$NON-NLS-1$ > /** > * Returns the string from the resource bundle, or 'key' if not found. > */ >Index: j2ee_ui/org/eclipse/jst/j2ee/internal/ui/preference/JETTemplatesReferencesPage.java >=================================================================== >RCS file: j2ee_ui/org/eclipse/jst/j2ee/internal/ui/preference/JETTemplatesReferencesPage.java >diff -N j2ee_ui/org/eclipse/jst/j2ee/internal/ui/preference/JETTemplatesReferencesPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ j2ee_ui/org/eclipse/jst/j2ee/internal/ui/preference/JETTemplatesReferencesPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,68 @@ >+package org.eclipse.jst.j2ee.internal.ui.preference; >+ >+//import org.eclipse.core.resources.ResourcesPlugin; >+import org.eclipse.core.runtime.Preferences; >+import org.eclipse.jface.preference.PreferencePage; >+import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; >+import org.eclipse.jst.j2ee.internal.plugin.J2EEUIMessages; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.events.SelectionAdapter; >+import org.eclipse.swt.events.SelectionEvent; >+import org.eclipse.swt.graphics.Font; >+import org.eclipse.swt.layout.GridData; >+import org.eclipse.swt.layout.GridLayout; >+import org.eclipse.swt.widgets.Button; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.swt.widgets.Group; >+import org.eclipse.ui.IWorkbench; >+import org.eclipse.ui.IWorkbenchPreferencePage; >+ >+public class JETTemplatesReferencesPage extends PreferencePage implements >+ IWorkbenchPreferencePage { >+ >+ private Preferences preferences; >+ private String name = J2EEPlugin.DYNAMIC_TRANSLATION_OF_JET_TEMPLATES_PREF_KEY; >+ private Button showReferences; >+ private boolean dynamicTranslation; >+ >+ public JETTemplatesReferencesPage() { >+ setDescription(J2EEUIMessages.getResourceString("JavaEEPrefPageName")); //$NON-NLS-1$ >+ } >+ >+ @Override >+ protected Control createContents(Composite parent) { >+ Font font = parent.getFont(); >+ >+ Composite result= new Composite(parent, SWT.NONE); >+ GridLayout layout= new GridLayout(); >+ layout.marginWidth= 0; >+ result.setLayout(layout); >+ Group buttonComposite= new Group(result, SWT.NONE); >+ buttonComposite.setLayout(new GridLayout()); >+ buttonComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); >+ buttonComposite.setText(J2EEUIMessages.getResourceString("JetTemplates")); //$NON-NLS-1$ >+ >+ showReferences = new Button(buttonComposite, SWT.CHECK); >+ showReferences.setText(J2EEUIMessages.getResourceString("DynTranslationButtonName")); //$NON-NLS-1$ >+ showReferences.setSelection(dynamicTranslation); >+ showReferences.addSelectionListener(new SelectionAdapter() { >+ public void widgetSelected(SelectionEvent e) { >+ dynamicTranslation = showReferences.getSelection(); >+ } >+ }); >+ return result; >+ } >+ >+ public void init(IWorkbench workbench) { >+ preferences = J2EEPlugin.getDefault().getPluginPreferences(); >+ dynamicTranslation = preferences.getBoolean(name); >+ } >+ >+ @Override >+ public boolean performOk() { >+ preferences.setValue(name, showReferences.getSelection()); >+ J2EEPlugin.getDefault().savePluginPreferences(); >+ return super.performOk(); >+ } >+} >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250128
:
120668
|
122535
|
123065
|
123173