Merged the 3.1 compatibility patches from the eclipse3_1compat branch into the HEAD.
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / src / net / sourceforge / phpdt / internal / debug / ui / launcher / PHPEnvironmentTab2.java
index 9681d2c..c6dd5e0 100644 (file)
@@ -81,16 +81,16 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
        protected TableViewer environmentTable;
        protected String[] envTableColumnHeaders =
        {
-               LaunchConfigurationsMessages.getString("EnvironmentTab.Variable_1"), //$NON-NLS-1$
-               LaunchConfigurationsMessages.getString("EnvironmentTab.Value_2"), //$NON-NLS-1$
+       LaunchConfigurationsMessages.EnvironmentTab_Variable_1, //$NON-NLS-1$
+       LaunchConfigurationsMessages.EnvironmentTab_Value_2 //$NON-NLS-1$
        };
        protected ColumnLayoutData[] envTableColumnLayouts =
        {
                new ColumnWeightData(50),
                new ColumnWeightData(50)
        };
-       private static final String NAME_LABEL= LaunchConfigurationsMessages.getString("EnvironmentTab.8"); //$NON-NLS-1$
-       private static final String VALUE_LABEL= LaunchConfigurationsMessages.getString("EnvironmentTab.9"); //$NON-NLS-1$
+   private static final String NAME_LABEL= LaunchConfigurationsMessages.EnvironmentTab_8; //$NON-NLS-1$
+   private static final String VALUE_LABEL= LaunchConfigurationsMessages.EnvironmentTab_9; //$NON-NLS-1$
        protected static final String P_VARIABLE = "variable"; //$NON-NLS-1$
        protected static final String P_VALUE = "value"; //$NON-NLS-1$
        protected static String[] envTableColumnProperties =
@@ -217,13 +217,13 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                appendReplaceComposite.setLayout(layout);
                appendReplaceComposite.setFont(parent.getFont());
                
-               appendEnvironment= createRadioButton(appendReplaceComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.16")); //$NON-NLS-1$
+       appendEnvironment= createRadioButton(appendReplaceComposite, LaunchConfigurationsMessages.EnvironmentTab_16); //$NON-NLS-1$
                appendEnvironment.addSelectionListener(new SelectionAdapter() {
                        public void widgetSelected(SelectionEvent e) {
                                updateLaunchConfigurationDialog();
                        }
                });
-               replaceEnvironment= createRadioButton(appendReplaceComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.17")); //$NON-NLS-1$
+       replaceEnvironment= createRadioButton(appendReplaceComposite, LaunchConfigurationsMessages.EnvironmentTab_17); //$NON-NLS-1$
        }
        
        /**
@@ -257,7 +257,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                // Create label
                Label label = new Label(tableComposite, SWT.NONE);
                label.setFont(font);
-               label.setText(LaunchConfigurationsMessages.getString("EnvironmentTab.Environment_variables_to_set__3")); //$NON-NLS-1$
+       label.setText(LaunchConfigurationsMessages.EnvironmentTab_Environment_variables_to_set__3); //$NON-NLS-1$
                // Create table
                environmentTable = new TableViewer(tableComposite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);
                Table table = environmentTable.getTable();
@@ -319,7 +319,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
 
                createVerticalSpacer(buttonComposite, 1);
                // Create buttons
-               envAddButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.New_4"), null); //$NON-NLS-1$
+       envAddButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.EnvironmentTab_New_4, null); //$NON-NLS-1$
                envAddButton.addSelectionListener(new SelectionAdapter()
                {
                        public void widgetSelected(SelectionEvent event) {
@@ -333,13 +333,13 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                        }
                });
                
-               envSelectButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.18"), null); //$NON-NLS-1$
+       envSelectButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.EnvironmentTab_18, null); //$NON-NLS-1$
                envSelectButton.addSelectionListener(new SelectionAdapter() {
                        public void widgetSelected(SelectionEvent event) {
                                handleEnvSelectButtonSelected();
                        }
                });
-               envEditButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.Edit_5"), null); //$NON-NLS-1$
+       envEditButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.EnvironmentTab_Edit_5, null); //$NON-NLS-1$
                envEditButton.addSelectionListener(new SelectionAdapter()
                {
                        public void widgetSelected(SelectionEvent event) {
@@ -347,7 +347,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                        }
                });
                envEditButton.setEnabled(false);
-               envRemoveButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.getString("EnvironmentTab.Remove_6"), null); //$NON-NLS-1$
+       envRemoveButton = createPushButton(buttonComposite, LaunchConfigurationsMessages.EnvironmentTab_Remove_6, null); //$NON-NLS-1$
                envRemoveButton.addSelectionListener(new SelectionAdapter()
                {
                        public void widgetSelected(SelectionEvent event) {
@@ -361,7 +361,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
         * Adds a new environment variable to the table.
         */
        protected void handleEnvAddButtonSelected() {
-               MultipleInputDialog dialog = new MultipleInputDialog(getShell(), LaunchConfigurationsMessages.getString("EnvironmentTab.22")); //$NON-NLS-1$
+       MultipleInputDialog dialog = new MultipleInputDialog(getShell(), LaunchConfigurationsMessages.EnvironmentTab_22); //$NON-NLS-1$
                dialog.addTextField(NAME_LABEL, null, false);
                dialog.addVariablesField(VALUE_LABEL, null, true);
                
@@ -391,7 +391,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                for (int i = 0; i < items.length; i++) {
                        EnvironmentVariable existingVariable = (EnvironmentVariable) items[i].getData();
                        if (existingVariable.getName().equals(name)) {
-                               boolean overWrite= MessageDialog.openQuestion(getShell(), LaunchConfigurationsMessages.getString("EnvironmentTab.12"), MessageFormat.format(LaunchConfigurationsMessages.getString("EnvironmentTab.13"), new String[] {name})); //$NON-NLS-1$ //$NON-NLS-2$
+               boolean overWrite= MessageDialog.openQuestion(getShell(), LaunchConfigurationsMessages.EnvironmentTab_12, MessageFormat.format(LaunchConfigurationsMessages.EnvironmentTab_13, new String[] {name})); //$NON-NLS-1$ //$NON-NLS-2$
                                if (!overWrite) {
                                        return false;
                                }
@@ -419,8 +419,8 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                        envVariables.remove(var.getName());
                }
                
-               ListSelectionDialog dialog = new NativeEnvironmentDialog(getShell(), envVariables, createSelectionDialogContentProvider(), createSelectionDialogLabelProvider(), LaunchConfigurationsMessages.getString("EnvironmentTab.19")); //$NON-NLS-1$
-               dialog.setTitle(LaunchConfigurationsMessages.getString("EnvironmentTab.20")); //$NON-NLS-1$
+       ListSelectionDialog dialog = new NativeEnvironmentDialog(getShell(), envVariables, createSelectionDialogContentProvider(), createSelectionDialogLabelProvider(), LaunchConfigurationsMessages.EnvironmentTab_19); //$NON-NLS-1$
+       dialog.setTitle(LaunchConfigurationsMessages.EnvironmentTab_20); //$NON-NLS-1$
                
                int button = dialog.open();
                if (button == Window.OK) {
@@ -469,8 +469,8 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                        envVariables.remove(var.getName());
                }
                
-               ListSelectionDialog dialog = new NativeEnvironmentDialog(getShell(), envVariables, createSelectionDialogContentProvider(), createSelectionDialogLabelProvider(), LaunchConfigurationsMessages.getString("EnvironmentTab.19")); //$NON-NLS-1$
-               dialog.setTitle(LaunchConfigurationsMessages.getString("EnvironmentTab.20")); //$NON-NLS-1$
+       ListSelectionDialog dialog = new NativeEnvironmentDialog(getShell(), envVariables, createSelectionDialogContentProvider(), createSelectionDialogLabelProvider(), LaunchConfigurationsMessages.EnvironmentTab_19); //$NON-NLS-1$
+       dialog.setTitle(LaunchConfigurationsMessages.EnvironmentTab_20); //$NON-NLS-1$
                
                int button = dialog.open();
                if (button == Window.OK) {
@@ -571,7 +571,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
                }
                String originalName= var.getName();
                String value= var.getValue();
-               MultipleInputDialog dialog= new MultipleInputDialog(getShell(), LaunchConfigurationsMessages.getString("EnvironmentTab.11")); //$NON-NLS-1$
+       MultipleInputDialog dialog= new MultipleInputDialog(getShell(), LaunchConfigurationsMessages.EnvironmentTab_11); //$NON-NLS-1$
                dialog.addTextField(NAME_LABEL, originalName, false);
                dialog.addVariablesField(VALUE_LABEL, value, true);
                
@@ -667,7 +667,7 @@ public class PHPEnvironmentTab2 extends AbstractLaunchConfigurationTab {
         * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
         */
        public String getName() {
-               return LaunchConfigurationsMessages.getString("EnvironmentTab.Environment_7"); //$NON-NLS-1$
+       return LaunchConfigurationsMessages.EnvironmentTab_Environment_7; //$NON-NLS-1$
        }
        
        /* (non-Javadoc)