Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-03-10 22:35:00 +0000
committerDarin Swanson2004-03-10 22:35:00 +0000
commit12ccaac8f45002c62e10eb73d0c6424e0f9c72a6 (patch)
treed139e817e7beb77de723cc39225c8e13e4cc9ccc /org.eclipse.core.variables/src/org
parent9694f79ef64a239559b9e17f772673d4b70f343b (diff)
downloadeclipse.platform.debug-12ccaac8f45002c62e10eb73d0c6424e0f9c72a6.tar.gz
eclipse.platform.debug-12ccaac8f45002c62e10eb73d0c6424e0f9c72a6.tar.xz
eclipse.platform.debug-12ccaac8f45002c62e10eb73d0c6424e0f9c72a6.zip
Pass to cleanup message properties files
Diffstat (limited to 'org.eclipse.core.variables/src/org')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringSubstitutionEngine.java5
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.properties4
2 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringSubstitutionEngine.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringSubstitutionEngine.java
index ee2f4a8a3..79ec024f0 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringSubstitutionEngine.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringSubstitutionEngine.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
@@ -261,9 +261,8 @@ public class StringSubstitutionEngine {
return valueVariable.getValue();
} else {
// error - an argument specified for a value variable
- throw new CoreException(new Status(IStatus.ERROR, VariablesPlugin.getUniqueIdentifier(), VariablesPlugin.INTERNAL_ERROR, MessageFormat.format("Variable {0} does not accept arguments.", new String[]{valueVariable.getName()}), null)); //$NON-NLS-1$
+ throw new CoreException(new Status(IStatus.ERROR, VariablesPlugin.getUniqueIdentifier(), VariablesPlugin.INTERNAL_ERROR, MessageFormat.format(VariablesMessages.getString("StringSubstitutionEngine.4"), new String[]{valueVariable.getName()}), null)); //$NON-NLS-1$
}
}
}
-
} \ No newline at end of file
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.properties b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.properties
index 5a510a6c5..35e75ac06 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.properties
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
+# Copyright (c) 2000, 2004 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Common Public License v1.0
# which accompanies this distribution, and is available at
@@ -10,7 +10,7 @@
###############################################################################
StringSubstitutionEngine.3=Reference to undefined variable {0}
-StringSubstitutionEngine.4=Variables cannot be resolved due to a cycle in the following variables: {0}
+StringSubstitutionEngine.4=Variable {0} does not accept arguments
StringVariableManager.26=Variables with the specified names are already registered.
StringVariableManager.27=Variable named {0} already registered

Back to the top