Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJared Burns2004-12-07 22:22:09 +0000
committerJared Burns2004-12-07 22:22:09 +0000
commit19ad8d0bc7e76ca4aad1a601f6b685d0a7b2e879 (patch)
tree77a37bf00ee2e62c51347e65fdf510de61e68a04 /org.eclipse.debug.ui
parent335e5217e2c31d152972bd10c8da2e329c21bebe (diff)
downloadeclipse.platform.debug-19ad8d0bc7e76ca4aad1a601f6b685d0a7b2e879.tar.gz
eclipse.platform.debug-19ad8d0bc7e76ca4aad1a601f6b685d0a7b2e879.tar.xz
eclipse.platform.debug-19ad8d0bc7e76ca4aad1a601f6b685d0a7b2e879.zip
Bug 45977 - Contribute variables should indicate the plugin that contributed them
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties3
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/StringVariablePreferencePage.java7
2 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
index 77d7d3df6..ff36f8e99 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencesMessages.properties
@@ -80,9 +80,10 @@ SimpleVariablePreferencePage.15=Overwrite variable?
SimpleVariablePreferencePage.16=A variable named {0} already exists. Overwrite?
SimpleLaunchVariablePreferencePage.21=Remove Contributed Variables
SimpleLaunchVariablePreferencePage.22=The following variables were contributed by plug-ins. Removing them may cause unknown problems.\n{0}\nProceed?
-SimpleLaunchVariablePreferencePage.23=\ (contributed)
+SimpleLaunchVariablePreferencePage.23=\ [contributed]
StringVariablePreferencePage.24=Error
StringVariablePreferencePage.25=Unable to save changes
+StringVariablePreferencePage.0=\ [contributed by {0}]
ViewManagementPreferencePage.0=The Debug View can automatically open and close views based on selection. Choose in which perspectives this feature should be enabled:
ViewManagementPreferencePage.1=View Management
ViewManagementPreferencePage.2=&Perspectives:
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/StringVariablePreferencePage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/StringVariablePreferencePage.java
index c883ef12c..4cc2b3a53 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/StringVariablePreferencePage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/StringVariablePreferencePage.java
@@ -488,7 +488,12 @@ public class StringVariablePreferencePage extends PreferencePage implements IWor
case 0 :
StringBuffer buffer= new StringBuffer(variable.getName());
if (variable.isContributed()) {
- buffer.append(DebugPreferencesMessages.getString("SimpleLaunchVariablePreferencePage.23")); //$NON-NLS-1$
+ String pluginId = getVariableManager().getContributingPluginId(variable);
+ if (pluginId != null) {
+ buffer.append(MessageFormat.format(DebugPreferencesMessages.getString("StringVariablePreferencePage.0"), new String[] {pluginId})); //$NON-NLS-1$
+ } else {
+ buffer.append(DebugPreferencesMessages.getString("SimpleLaunchVariablePreferencePage.23")); //$NON-NLS-1$
+ }
}
return buffer.toString();
case 1:

Back to the top