Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2007-05-16 18:44:32 +0000
committerCurtis Windatt2007-05-16 18:44:32 +0000
commit066031e10eecaf2b41d5586aed5378e135fd4edb (patch)
tree0cbc58402c5dbfae1d6382a0bc5c48e304977e8f
parent3390f92a306007bc493e0cfc4287f690e98444de (diff)
downloadeclipse.platform.debug-066031e10eecaf2b41d5586aed5378e135fd4edb.tar.gz
eclipse.platform.debug-066031e10eecaf2b41d5586aed5378e135fd4edb.tar.xz
eclipse.platform.debug-066031e10eecaf2b41d5586aed5378e135fd4edb.zip
Bug 187319 - TVT33:TCT189: ar: 13.002210 Parenthesis incorrectly displayed
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java7
3 files changed, 11 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
index 939c7645a..93c2f14c6 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
@@ -46,6 +46,8 @@ public class LaunchConfigurationsMessages extends NLS {
public static String CompileErrorPromptStatusHandler_2;
public static String EnvironmentTab_22;
+ public static String EnvironmentTab_7;
+
public static String LaunchConfigurationDialog__Apply_17;
public static String LaunchConfigurationDialog__Name__16;
public static String LaunchConfigurationDialog_An_exception_occurred_while_retrieving_launch_configurations_20;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
index 077c8b482..4e26712bc 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
@@ -147,6 +147,12 @@ EnvironmentTab_Remove_6=&Remove
EnvironmentTab_Environment_7=Environment
EnvironmentTab_8=&Name:
EnvironmentTab_9=&Value:
+
+# This externalized string is used in the select environment variables dialog's label provider.
+# Each item in the dialog is a single environment variable.
+# {0} is replaced with the name of the environment variable
+# {1} is replaced with the current value of the environment variable
+EnvironmentTab_7={0} [ {1} ]
EnvironmentTab_11=Edit Environment Variable
EnvironmentTab_12=Overwrite variable?
EnvironmentTab_13=A variable named {0} already exists. Overwrite?
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
index bf258065b..85512c315 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 Keith Seitz and others.
+ * Copyright (c) 2000, 2007 Keith Seitz and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -442,7 +442,7 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
}
public String getText(Object element) {
EnvironmentVariable var = (EnvironmentVariable) element;
- return var.getName() + " [" + var.getValue() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
+ return MessageFormat.format(LaunchConfigurationsMessages.EnvironmentTab_7, new String[] {var.getName(), var.getValue()});
}
public void addListener(ILabelProviderListener listener) {
}
@@ -471,7 +471,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
String s2 = (String)o2;
return s1.compareTo(s2);
}
-
};
TreeMap envVars = new TreeMap(comparator);
envVars.putAll((Map)inputElement);
@@ -644,7 +643,7 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
public void deactivated(ILaunchConfigurationWorkingCopy workingCopy) {
- // do nothing when deactivated
+ // do nothing when de-activated
}
private class NativeEnvironmentDialog extends ListSelectionDialog {

Back to the top