Author: scabanovich
Date: 2012-02-22 19:51:36 -0500 (Wed, 22 Feb 2012)
New Revision: 39025
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/messages.properties
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewDSXMLWizard.java
Log:
JBIDE-10787
https://issues.jboss.org/browse/JBIDE-10787
Minor fixes.
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2012-02-23 00:14:00 UTC (rev
39024)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2012-02-23 00:51:36 UTC (rev
39025)
@@ -192,7 +192,7 @@
</selection>
</wizard>
<wizard
- name="JBoss Datasource"
+ name="JBoss Datasource (-ds.xml)"
icon="$nl$/images/xstudio/wizards/new_properties_file.gif"
category="org.jboss.tools.jst.web"
class="org.jboss.tools.jst.web.ui.wizards.newfile.NewDSXMLWizard"
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/messages.properties
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/messages.properties 2012-02-23
00:14:00 UTC (rev 39024)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/messages.properties 2012-02-23
00:51:36 UTC (rev 39025)
@@ -79,10 +79,10 @@
UI_WIZARD_XHTML_NEW_Description=Create New XHTML Page
NewDSXMLWizard_TITLE=New JBoss Datasource
-NewDSXMLWizard_SUBTITLE=JBoss Datasource
-NewDSXMLWizard_DESCRIPTION=Create New JBoss Datasource
+NewDSXMLWizard_SUBTITLE=JBoss Datasource (-ds.xml)
+NewDSXMLWizard_DESCRIPTION=Create a new JBoss datasource
NewDSXMLWizard_CONNECTION_PROFILE_FIELD=Connection profile:
-NewDSXMLWizard_TEMPLATE_FIELD=Template:
+NewDSXMLWizard_TEMPLATE_FIELD=Format:
NewDSXMLWizard_EDIT_BUTTON=Edit...
NewDSXMLWizard_NEW_BUTTON=New...
NewDSXMLWizard_FILE_EXISTS=''{0}'' already exists.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewDSXMLWizard.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewDSXMLWizard.java 2012-02-23
00:14:00 UTC (rev 39024)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/newfile/NewDSXMLWizard.java 2012-02-23
00:51:36 UTC (rev 39025)
@@ -711,18 +711,19 @@
class NewDSXMLWizardFactory {
static String EMPTY_PROFILE = " "; //$NON-NLS-1$
- static String AS_5_TEMPLATE = "Format: JBoss AS 5"; //$NON-NLS-1$
- static String AS_7_TEMPLATE = "Format: JBoss AS 7"; //$NON-NLS-1$
+ static String AS_5_TEMPLATE = "AS 5"; //$NON-NLS-1$
+ static String AS_7_TEMPLATE = "AS 7"; //$NON-NLS-1$
public static String[] TEMPLATE_LIST = {
AS_5_TEMPLATE, AS_7_TEMPLATE
};
public static IFieldEditor createTemplateFieldEditor(Object defaultValue) {
- IFieldEditor result = IFieldEditorFactory.INSTANCE.createComboEditor(
+ IFieldEditor result = IFieldEditorFactory.INSTANCE.createRadioEditor(
IDSDataModelProperties.TEMPLATE,
Messages.NewDSXMLWizard_TEMPLATE_FIELD,
Arrays.asList(TEMPLATE_LIST),
+ Arrays.asList(TEMPLATE_LIST),
TEMPLATE_LIST[0]);
return result;
}