Author: Grid.Qian
Date: 2008-06-06 04:15:31 -0400 (Fri, 06 Jun 2008)
New Revision: 8591
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java
Log:
JBIDE-2047: modify for I18n messages
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java 2008-06-06
08:15:24 UTC (rev 8590)
+++
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/CodeGenConfigWidget.java 2008-06-06
08:15:31 UTC (rev 8591)
@@ -41,7 +41,7 @@
//custom package name
Label lblCustomPakage = new Label(configCom, SWT.NONE);
- lblCustomPakage.setText(JBossWSCreationCoreMessages.LABEL_CUSTOM_PACKAGE_NAME);
//$NON-NLS-1$
+ lblCustomPakage.setText(JBossWSCreationCoreMessages.Label_Custom_Package_Name);
//$NON-NLS-1$
final Text txtCustomPkgName = new Text(configCom, SWT.BORDER);
txtCustomPkgName.setText(model.getCustomPackage());
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -54,11 +54,11 @@
}});
//target
- new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.LABEL_JAXWS_TARGET);
//$NON-NLS-1$
+ new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.Label_JaxWS_Target);
//$NON-NLS-1$
final Combo cbSpec = new Combo(configCom, SWT.BORDER | SWT.READ_ONLY);
- cbSpec.add(JBossWSCreationCoreMessages.VALUE_TARGET_0, 0); //$NON-NLS-1$
- cbSpec.add(JBossWSCreationCoreMessages.VALUE_TARGET_1, 1); //$NON-NLS-1$
- if(JBossWSCreationCoreMessages.VALUE_TARGET_0.equals(model.getTarget())){
+ cbSpec.add(JBossWSCreationCoreMessages.Value_Target_0, 0); //$NON-NLS-1$
+ cbSpec.add(JBossWSCreationCoreMessages.Value_Target_1, 1); //$NON-NLS-1$
+ if(JBossWSCreationCoreMessages.Value_Target_0.equals(model.getTarget())){
cbSpec.select(0);
}
else{
@@ -74,11 +74,11 @@
}});
//catalog file
- new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.LABEL_CATALOG_FILE);
//$NON-NLS-1$
+ new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.Label_Catalog_File);
//$NON-NLS-1$
final Text txtCatlog = new Text(configCom, SWT.BORDER);
txtCatlog.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Button btnCatlog = new Button(configCom, SWT.NONE);
- btnCatlog.setText(JBossWSCreationCoreMessages.LABEL_BUTTON_TEXT_SELECTION);
//$NON-NLS-1$
+ btnCatlog.setText(JBossWSCreationCoreMessages.Label_Button_Text_Seletion);
//$NON-NLS-1$
btnCatlog.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
String fileLocation = new FileDialog(Display.getCurrent().getActiveShell(),
SWT.NONE).open();
@@ -88,7 +88,7 @@
});
//binding files
- new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.LABEL_BINDING_FILE);
//$NON-NLS-1$
+ new Label(configCom, SWT.NONE).setText(JBossWSCreationCoreMessages.Label_Binding_File);
//$NON-NLS-1$
final List bindingList = new List(configCom, SWT.BORDER | SWT.SCROLL_LINE |
SWT.V_SCROLL | SWT.H_SCROLL);
gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -108,7 +108,7 @@
Button btnSelect = new Button(configCom, SWT.NONE);
- btnSelect.setText(JBossWSCreationCoreMessages.LABEL_BUTTON_TEXT_SELECTION);
//$NON-NLS-1$
+ btnSelect.setText(JBossWSCreationCoreMessages.Label_Button_Text_Seletion);
//$NON-NLS-1$
btnSelect.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
@@ -125,7 +125,7 @@
new Label(configCom, SWT.NONE);
btnRemove = new Button(configCom, SWT.NONE);
btnRemove.setEnabled(false);
- btnRemove.setText(JBossWSCreationCoreMessages.LABEL_BUTTON_TEXT_REMOVE);
+ btnRemove.setText(JBossWSCreationCoreMessages.Label_Button_Text_Remove);
btnRemove.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
model.getBindingFiles().remove(bindingList.getSelectionIndex());