NLS Translations
diff --git a/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/ExpressionProcesser.java b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/ExpressionProcesser.java
index dd957ba..9e5d4c7 100644
--- a/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/ExpressionProcesser.java
+++ b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/ExpressionProcesser.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: ExpressionProcesser.java,v $
- *  $Revision: 1.2 $  $Date: 2004/04/16 18:31:37 $ 
+ *  $Revision: 1.3 $  $Date: 2004/06/02 19:58:29 $ 
  */
 package org.eclipse.jem.internal.proxy.initParser.tree;
 
@@ -404,7 +404,7 @@
 	}
 	
 	private void throwClassCast(Class returnType, Object bean) throws ClassCastException {
-		throw new ClassCastException(MessageFormat.format("Cannot cast \"{0}\" to be \"{1}\".", new Object[] {bean != null ? bean.getClass().getName() : null, returnType.getName()}));
+		throw new ClassCastException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.CannotCastXToY"), new Object[] {bean != null ? bean.getClass().getName() : null, returnType.getName()})); //$NON-NLS-1$
 	}
 
 	/**
@@ -432,7 +432,7 @@
 		else if (bean instanceof Short)
 			return Short.TYPE;
 		else
-			throw new IllegalArgumentException(bean != null ? bean.getClass().getName() : "null");
+			throw new IllegalArgumentException(bean != null ? bean.getClass().getName() : "null"); //$NON-NLS-1$
 	}
 	
 
@@ -475,10 +475,10 @@
 	private static final String[] PRE_OPER_TO_STRING;
 	static {
 		PRE_OPER_TO_STRING = new String[IExpressionConstants.PRE_MAX+1];
-		PRE_OPER_TO_STRING[IExpressionConstants.PRE_PLUS] = "+";
-		PRE_OPER_TO_STRING[IExpressionConstants.PRE_MINUS] = "-";
-		PRE_OPER_TO_STRING[IExpressionConstants.PRE_COMPLEMENT] = "~";
-		PRE_OPER_TO_STRING[IExpressionConstants.PRE_NOT] = "!";
+		PRE_OPER_TO_STRING[IExpressionConstants.PRE_PLUS] = "+"; //$NON-NLS-1$
+		PRE_OPER_TO_STRING[IExpressionConstants.PRE_MINUS] = "-"; //$NON-NLS-1$
+		PRE_OPER_TO_STRING[IExpressionConstants.PRE_COMPLEMENT] = "~"; //$NON-NLS-1$
+		PRE_OPER_TO_STRING[IExpressionConstants.PRE_NOT] = "!"; //$NON-NLS-1$
 	}
 	
 	/**
@@ -623,31 +623,31 @@
 	}
 	
 	private void throwInvalidPrefix(int operator, Object exp) throws IllegalArgumentException {
-		throw new IllegalArgumentException(MessageFormat.format("{0} not valid as the operand of prefix operator \"{1}\".", new Object[] {exp != null ? exp.toString() : null, PRE_OPER_TO_STRING[operator]}));
+		throw new IllegalArgumentException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.InvalidOperandOfPrefixOperator"), new Object[] {exp != null ? exp.toString() : null, PRE_OPER_TO_STRING[operator]})); //$NON-NLS-1$
 	}
 
 	private static final String[] IN_OPER_TO_STRING;
 	static {
 		IN_OPER_TO_STRING = new String[IExpressionConstants.IN_MAX+1];
-		IN_OPER_TO_STRING[IExpressionConstants.IN_AND] = "&";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_CONDITIONAL_AND] = "&&";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_CONDITIONAL_OR] = "||";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_DIVIDE] = "/";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_EQUALS] = "==";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_GREATER] = ">";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_GREATER_EQUALS] = ">=";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_LEFT_SHIFT] = "<<";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_LESS] = "<";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_LESS_EQUALS] = "<=";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_MINUS] = "-";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_NOT_EQUALS] = "!=";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_OR] = "|";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_PLUS] = "+";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_REMAINDER] = "%";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_RIGHT_SHIFT_SIGNED] = ">>";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_RIGHT_SHIFT_UNSIGNED] = ">>>";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_TIMES] = "*";
-		IN_OPER_TO_STRING[IExpressionConstants.IN_XOR] = "^";
+		IN_OPER_TO_STRING[IExpressionConstants.IN_AND] = "&"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_CONDITIONAL_AND] = "&&"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_CONDITIONAL_OR] = "||"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_DIVIDE] = "/"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_EQUALS] = "=="; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_GREATER] = ">"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_GREATER_EQUALS] = ">="; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_LEFT_SHIFT] = "<<"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_LESS] = "<"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_LESS_EQUALS] = "<="; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_MINUS] = "-"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_NOT_EQUALS] = "!="; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_OR] = "|"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_PLUS] = "+"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_REMAINDER] = "%"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_RIGHT_SHIFT_SIGNED] = ">>"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_RIGHT_SHIFT_UNSIGNED] = ">>>"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_TIMES] = "*"; //$NON-NLS-1$
+		IN_OPER_TO_STRING[IExpressionConstants.IN_XOR] = "^"; //$NON-NLS-1$
 	}
 		
 	
@@ -1168,7 +1168,7 @@
 	}
 	
 	private void throwInvalidInfix(int operator, Object value) throws IllegalArgumentException {
-		throw new IllegalArgumentException(MessageFormat.format("{0} not valid as the operand of operator \"{1}\".", new Object[] {value != null ? value.toString() : null, IN_OPER_TO_STRING[operator]}));
+		throw new IllegalArgumentException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.InvalidOperandOfOperator"), new Object[] {value != null ? value.toString() : null, IN_OPER_TO_STRING[operator]})); //$NON-NLS-1$
 	}
 	
 	private void testValidBitType(Class type, int operator) {
@@ -1264,7 +1264,7 @@
 			}
 			
 			if (dimcount < indexCount)
-				throw new IllegalArgumentException(MessageFormat.format("{0} is greater then number of dimensions ({1}) in the array", new Object[] {new Integer(indexCount), new Integer(dimcount)}));
+				throw new IllegalArgumentException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.XIsGreaterThanNumberOfDimensionsInArray"), new Object[] {new Integer(indexCount), new Integer(dimcount)})); //$NON-NLS-1$
 			
 			// Now start accessing one index at a time.
 			Object value = array;	// Final value, start with full array. 
@@ -1273,7 +1273,7 @@
 			}
 			pushExpressionValue(value, componentTypes[indexCount-1]);
 		}  else
-			throw new IllegalArgumentException(MessageFormat.format("\"{0}\" is not an array.", new Object[] {arrayType}));
+			throw new IllegalArgumentException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.NotAnArray"), new Object[] {arrayType})); //$NON-NLS-1$
 	}
 	
 	/**
@@ -1304,7 +1304,7 @@
 			for(int i=0; i < dimensionCount && componentType != null; i++)
 				componentType = componentType.getComponentType();
 			if (componentType == null)
-				throw new IllegalArgumentException(MessageFormat.format("Arraytype \"{0}\" has fewer dimensions than creation requested ({1}).", new Object[] {arrayType, new Integer(dimensionCount)}));
+				throw new IllegalArgumentException(MessageFormat.format(InitparserTreeMessages.getString("ExpressionProcesser.ArraytypeHasFewerDimensionsThanRequested"), new Object[] {arrayType, new Integer(dimensionCount)})); //$NON-NLS-1$
 			
 			// We need to pull in the dimension initializers. They are stacked in reverse order.
 			int[] dimInit = new int[dimensionCount];
diff --git a/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/InitparserTreeMessages.java b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/InitparserTreeMessages.java
new file mode 100644
index 0000000..28ebe21
--- /dev/null
+++ b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/InitparserTreeMessages.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 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
+ * http://www.eclipse.org/legal/cpl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+/*
+ *  $RCSfile: InitparserTreeMessages.java,v $
+ *  $Revision: 1.1 $  $Date: 2004/06/02 19:58:29 $ 
+ */
+package org.eclipse.jem.internal.proxy.initParser.tree;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author sri
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class InitparserTreeMessages {
+
+	private static final String BUNDLE_NAME = "org.eclipse.jem.internal.proxy.initParser.tree.messages";//$NON-NLS-1$
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+
+	private InitparserTreeMessages() {
+	}
+
+	public static String getString(String key) {
+		// TODO Auto-generated method stub
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
\ No newline at end of file
diff --git a/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/messages.properties b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/messages.properties
new file mode 100644
index 0000000..5783551
--- /dev/null
+++ b/plugins/org.eclipse.jem.proxy/initParser/org/eclipse/jem/internal/proxy/initParser/tree/messages.properties
@@ -0,0 +1,6 @@
+ExpressionProcesser.CannotCastXToY=Cannot cast "{0}" to be "{1}".
+ExpressionProcesser.InvalidOperandOfPrefixOperator={0} not valid as the operand of prefix operator "{1}".
+ExpressionProcesser.InvalidOperandOfOperator={0} not valid as the operand of operator "{1}".
+ExpressionProcesser.XIsGreaterThanNumberOfDimensionsInArray={0} is greater then number of dimensions ({1}) in the array
+ExpressionProcesser.NotAnArray="{0}" is not an array.
+ExpressionProcesser.ArraytypeHasFewerDimensionsThanRequested=Arraytype "{0}" has fewer dimensions than creation requested ({1}).
diff --git a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/Expression.java b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/Expression.java
index dd66b84..c0c4191 100644
--- a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/Expression.java
+++ b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/Expression.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: Expression.java,v $
- *  $Revision: 1.2 $  $Date: 2004/04/01 21:25:02 $ 
+ *  $Revision: 1.3 $  $Date: 2004/06/02 19:58:49 $ 
  */
 package org.eclipse.jem.internal.proxy.core;
 
@@ -365,13 +365,13 @@
 			else if (nextForExpressionStack[nextForExpressionStackPos--] == forExpression)
 				return;	// Valid, the top expression matched.
 		} else {
-			String expMsg = invalidMsg != null ? MessageFormat.format("Expression is in invalid state due to \"{0}\"", new Object[] {invalidMsg}) : "Expression is in invalid state";
+			String expMsg = invalidMsg != null ? MessageFormat.format(ProxyMessages.getString("Expression.InInvalidStateDueTo"), new Object[] {invalidMsg}) : ProxyMessages.getString("Expression.InInvalidState"); //$NON-NLS-1$ //$NON-NLS-2$
 			throw new IllegalStateException(expMsg);
 		}
 		
 		// If we got here, then invalid.
 		nextForExpressionStackPos = INVALID;
-		throw new IllegalStateException("Expression type sent in invalid order");
+		throw new IllegalStateException(ProxyMessages.getString("Expression.TypeSentInInvalidOrder")); //$NON-NLS-1$
 	}
 	
 	/**
@@ -681,14 +681,14 @@
 			if (arrayType instanceof String) {
 				// Need to remove the end set of "[]" to reduce by one dimension.
 				String at = (String) arrayType;
-				int i = at.lastIndexOf("[]");
+				int i = at.lastIndexOf("[]"); //$NON-NLS-1$
 				if (i == -1)
-					throw new IllegalArgumentException(MessageFormat.format("ArrayType \"{0}\" is not an array.", new Object[] {arrayType}));
+					throw new IllegalArgumentException(MessageFormat.format(ProxyMessages.getString("Expression.ArrayTypeNotAnArray"), new Object[] {arrayType})); //$NON-NLS-1$
 				arrayType = at.substring(0, i);
 			} else if (arrayType instanceof IArrayBeanTypeProxy) {
 				arrayType = ((IArrayBeanTypeProxy) arrayType).getComponentType();
 			} else
-				throw new IllegalArgumentException(MessageFormat.format("ArrayType \"{0}\" is not an array.", new Object[] {arrayType}));
+				throw new IllegalArgumentException(MessageFormat.format(ProxyMessages.getString("Expression.ArrayTypeNotAnArray"), new Object[] {arrayType})); //$NON-NLS-1$
 			push(arrayType);
 			push(ARRAYINITIALIZER);
 			
@@ -839,7 +839,7 @@
 		try {
 			checkForExpression(forExpression);
 			if (!hasReceiver)
-				throw new IllegalArgumentException("Currently cannot handle no receiver on field access.");
+				throw new IllegalArgumentException(ProxyMessages.getString("Expression.CannotHandleNoReceiveOnFieldAccess")); //$NON-NLS-1$
 			
 			push(hasReceiver ? Boolean.TRUE : Boolean.FALSE);	// We have a receiver
 			push(fieldName);
@@ -948,7 +948,7 @@
 		try {
 			checkForExpression(forExpression);
 			if (!hasReceiver)
-				throw new IllegalArgumentException(MessageFormat.format("Currently methods need receiver ({0})", new Object[] {name}));
+				throw new IllegalArgumentException(MessageFormat.format(ProxyMessages.getString("Expression.MethodsNeedReceiver"), new Object[] {name})); //$NON-NLS-1$
 
 			switch (argumentCount) {
 				case 0 :
diff --git a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyLaunchSupport.java b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyLaunchSupport.java
index b097b34..43b3a07 100644
--- a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyLaunchSupport.java
+++ b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyLaunchSupport.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: ProxyLaunchSupport.java,v $
- *  $Revision: 1.8 $  $Date: 2004/05/24 23:23:36 $ 
+ *  $Revision: 1.9 $  $Date: 2004/06/02 19:58:49 $ 
  */
 package org.eclipse.jem.internal.proxy.core;
 
@@ -36,13 +36,13 @@
 	/**
 	 * These are public only so that jem.ui can access this constant. Not meant to be accessed by others.
 	 */
-	public static final QualifiedName PROPERTY_LAUNCH_CONFIGURATION = new QualifiedName("org.eclipse.jem.proxy", "proxyLaunchConfiguration");
+	public static final QualifiedName PROPERTY_LAUNCH_CONFIGURATION = new QualifiedName("org.eclipse.jem.proxy", "proxyLaunchConfiguration"); //$NON-NLS-1$ //$NON-NLS-2$
 	// If a project's persistent property is set with this value, that means there is at least one
 	// launch configuration with this project, but none are selected as the default. This is here
 	// so that we can check in the object contribution that if not set then don't show the menu
 	// item at all. This is to clean up the popup menu so not so cluttered.
 	// If the property is trully not set, then there is no default and there are no configurations for it.
-	public static final String NOT_SET = "...not..set..";	 
+	public static final String NOT_SET = "...not..set..";	  //$NON-NLS-1$
 		
 	/*
 	 * Registry of launch key to LaunchInfo classes.
@@ -245,14 +245,14 @@
 					break;
 				}
 			}
-			if (config == null || !config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "").equals(project.getName())) {
+			if (config == null || !config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "").equals(project.getName())) { //$NON-NLS-1$
 				project.setPersistentProperty(PROPERTY_LAUNCH_CONFIGURATION, (String) null);	// Config not found, or for a different project, so no longer the default.
 				config = null;
 			}
 		}
 		
 		if (config == null) {
-			ILaunchConfigurationWorkingCopy configwc = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IProxyConstants.LOCAL_LAUNCH_TYPE).newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom("LocalProxy_"+project.getName()));
+			ILaunchConfigurationWorkingCopy configwc = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IProxyConstants.LOCAL_LAUNCH_TYPE).newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom("LocalProxy_"+project.getName())); //$NON-NLS-1$
 			configwc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName()); 
 			config = configwc;
 		}
@@ -287,7 +287,7 @@
 		// decided
 		// too difficult to determine if build would affect us or not, so just wait.
 		pm.beginTask("", 400);
-		pm.subTask(ProxyMessages.getString("ProxyLaunch"));
+		pm.subTask(ProxyMessages.getString("ProxyLaunch")); //$NON-NLS-1$
 		handleBuild(new SubProgressMonitor(pm, 100));
 				
 		if (aContribs != null) {
@@ -415,7 +415,7 @@
 			
 			final ProxyFactoryRegistry reg = launchInfo.resultRegistry;
 			if (reg == null)
-				throw new CoreException(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getBundle().getSymbolicName(), 0, "Registry could not be started for some reason.", null));
+				throw new CoreException(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getBundle().getSymbolicName(), 0, ProxyMessages.getString("ProxyLaunchSupport.RegistryCouldNotStartForSomeReason"), null)); //$NON-NLS-1$
 			
 			for (int i = 0; i < contribs.length; i++) {
 				final int ii = i;
@@ -450,7 +450,7 @@
 			pm.beginTask("", 100);
 			if (build.length == 1) {
 				if (build[0].getState() == Job.RUNNING || build[0].getState() == Job.WAITING || build[0].getState() == Job.SLEEPING) {
-					pm.subTask(ProxyMessages.getString("ProxyWaitForBuild"));
+					pm.subTask(ProxyMessages.getString("ProxyWaitForBuild")); //$NON-NLS-1$
 					try {						
 						build[0].join();						
 					} catch (InterruptedException e) {
diff --git a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyPlugin.java b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyPlugin.java
index 867b914..9e29f35 100644
--- a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyPlugin.java
+++ b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyPlugin.java
@@ -11,7 +11,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: ProxyPlugin.java,v $
- *  $Revision: 1.23 $  $Date: 2004/06/02 16:28:51 $ 
+ *  $Revision: 1.24 $  $Date: 2004/06/02 19:58:49 $ 
  */
 
 
@@ -244,7 +244,7 @@
 		}
 	}
 	
-	private static final IPath PROXYJARS_PATH = new Path("proxy.jars");
+	private static final IPath PROXYJARS_PATH = new Path("proxy.jars"); //$NON-NLS-1$
 	
 	/**
 	 * @see ProxyPlugin#localizeFromBundle(Bundle, String)
@@ -549,7 +549,7 @@
 		}
 	};
 	
-	private Job cleanupJob = new Job("Clean up default proxy launch configurations.") {
+	private Job cleanupJob = new Job(ProxyMessages.getString("ProxyPlugin.CleanupDefaultProxyLaunchConfigurations")) { //$NON-NLS-1$
 		{
 			setSystem(true);	// So it doesn't show up in progress monitor. No need to interrupt user.
 			setPriority(Job.SHORT);	// A quick running job.
@@ -652,10 +652,10 @@
 		super.stop(context);
 	}
 	
-	public static final String PI_CONFIGURATION_CONTRIBUTION_EXTENSION_POINT = "org.eclipse.jem.proxy.contributors";
-	public static final String PI_CONTAINER = "container";
-	public static final String PI_PLUGIN = "plugin";
-	public static final String PI_CLASS = "class";
+	public static final String PI_CONFIGURATION_CONTRIBUTION_EXTENSION_POINT = "org.eclipse.jem.proxy.contributors"; //$NON-NLS-1$
+	public static final String PI_CONTAINER = "container"; //$NON-NLS-1$
+	public static final String PI_PLUGIN = "plugin"; //$NON-NLS-1$
+	public static final String PI_CLASS = "class"; //$NON-NLS-1$
 	
 	/*
 	 * Map of container id's to their ordered array of contribution config elements.
@@ -856,9 +856,9 @@
 				case IClasspathEntry.CPE_VARIABLE:
 					// We only care about JRE_LIB. If we have that, then we will treat it as JRE_CONTAINER. Only
 					// care about first project too, because the first project is the one that determines the JRE type.
-					if (first && "JRE_LIB".equals(entry.getPath().segment(0))) {
-						if (!containerIds.containsKey("org.eclipse.jdt.launching.JRE_CONTAINER"))
-							containerIds.put("org.eclipse.jdt.launching.JRE_CONTAINER", Boolean.TRUE);
+					if (first && "JRE_LIB".equals(entry.getPath().segment(0))) { //$NON-NLS-1$
+						if (!containerIds.containsKey("org.eclipse.jdt.launching.JRE_CONTAINER")) //$NON-NLS-1$
+							containerIds.put("org.eclipse.jdt.launching.JRE_CONTAINER", Boolean.TRUE); //$NON-NLS-1$
 					}
 					break;
 				default:
diff --git a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/messages.properties b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/messages.properties
index e677643..1e59182 100644
--- a/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/messages.properties
+++ b/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/messages.properties
@@ -10,7 +10,7 @@
 ###############################################################################
 #
 # $Source: /cvsroot/webtools/jeetools.move/webtools.javaee.git/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/messages.properties,v $
-# $Revision: 1.2 $  $Date: 2004/03/26 23:07:45 $
+# $Revision: 1.3 $  $Date: 2004/06/02 19:58:49 $
 #
 
 
@@ -36,3 +36,11 @@
 
 ProxyLaunch = Launching Local Proxy VM
 ProxyWaitForBuild = Waiting for build to complete
+Expression.InInvalidStateDueTo=Expression is in invalid state due to "{0}"
+Expression.InInvalidState=Expression is in invalid state
+Expression.TypeSentInInvalidOrder=Expression type sent in invalid order
+Expression.ArrayTypeNotAnArray=ArrayType "{0}" is not an array.
+Expression.CannotHandleNoReceiveOnFieldAccess=Currently cannot handle no receiver on field access.
+Expression.MethodsNeedReceiver=Currently methods need receiver ({0})
+ProxyPlugin.CleanupDefaultProxyLaunchConfigurations=Clean up default proxy launch configurations.
+ProxyLaunchSupport.RegistryCouldNotStartForSomeReason=Registry could not be started for some reason.
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/DebugModeHelper.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/DebugModeHelper.java
index 46de01a..e6fe0e6 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/DebugModeHelper.java
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/DebugModeHelper.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: DebugModeHelper.java,v $
- *  $Revision: 1.3 $  $Date: 2004/05/24 23:23:36 $ 
+ *  $Revision: 1.4 $  $Date: 2004/06/02 19:59:11 $ 
  */
 package org.eclipse.jem.internal.proxy.remote;
 
@@ -72,7 +72,7 @@
 	
 	 		// Setup Eclipse
 		 	Class cPlatformUI = uiBundle.loadClass("org.eclipse.ui.PlatformUI"); //$NON-NLS-1$
-		 	Method isWBRunning = cPlatformUI.getMethod("isWorkbenchRunning", null);
+		 	Method isWBRunning = cPlatformUI.getMethod("isWorkbenchRunning", null); //$NON-NLS-1$
 		 	if (!((Boolean) isWBRunning.invoke(null, null)).booleanValue()) {
 		 		setupAWT();	// UI not available, try through AWT.
 		 		return;
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/LocalProxyLaunchDelegate.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/LocalProxyLaunchDelegate.java
index b6dbb5b..61f45f4 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/LocalProxyLaunchDelegate.java
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/LocalProxyLaunchDelegate.java
@@ -7,7 +7,7 @@
  * Contributors: IBM Corporation - initial API and implementation
  **************************************************************************************************/
 /*
- * $RCSfile: LocalProxyLaunchDelegate.java,v $ $Revision: 1.10 $ $Date: 2004/05/25 14:06:06 $
+ * $RCSfile: LocalProxyLaunchDelegate.java,v $ $Revision: 1.11 $ $Date: 2004/06/02 19:59:11 $
  */
 package org.eclipse.jem.internal.proxy.remote;
 
@@ -50,7 +50,7 @@
 
 		String launchKey = configuration.getAttribute(IProxyConstants.ATTRIBUTE_LAUNCH_KEY, (String) null);
 		if (launchKey == null)
-			abort(ProxyRemoteMessages.getString("ProxyRemoteNoLaunchKey"), null, 0);
+			abort(ProxyRemoteMessages.getString("ProxyRemoteNoLaunchKey"), null, 0); //$NON-NLS-1$
 
 		// In Eclipse, even if private, a launch will show up in the debug process tree and in the console viewer.
 		// To be absolutely private, we need to remove the launch which has already been added.
@@ -72,7 +72,7 @@
 			name = name.replace('"', '\'');
 
 		pm.beginTask("", 500); //$NON-NLS-1$
-		pm.subTask(MessageFormat.format(ProxyRemoteMessages.getString("ProxyRemoteLaunchVM"), new Object[] { name }));
+		pm.subTask(MessageFormat.format(ProxyRemoteMessages.getString("ProxyRemoteLaunchVM"), new Object[] { name })); //$NON-NLS-1$
 		// check for cancellation
 		if (pm.isCanceled())
 			return;
@@ -149,7 +149,7 @@
 
 		// Create VM config
 		VMRunnerConfiguration runConfig =
-			new VMRunnerConfiguration("org.eclipse.jem.internal.proxy.vm.remote.RemoteVMApplication", classpath);
+			new VMRunnerConfiguration("org.eclipse.jem.internal.proxy.vm.remote.RemoteVMApplication", classpath); //$NON-NLS-1$
 
 		REMProxyFactoryRegistry registry = new REMProxyFactoryRegistry(ProxyRemoteUtil.getRegistryController(), name);
 		Integer registryKey = registry.getRegistryKey();
@@ -173,7 +173,7 @@
 		if (!javaLibPaths.isEmpty()) {
 			// first need to see if java lib path also specified in standard args by someone configuring the configuration by hand.
 			for (int i = 0; i < evmArgs.length; i++) {
-				if (evmArgs[i].startsWith("-Djava.library.path")) {
+				if (evmArgs[i].startsWith("-Djava.library.path")) { //$NON-NLS-1$
 					// We found one already here, save the spot so we update it later.
 					existingLibpaths = i;
 					break;
@@ -186,19 +186,19 @@
 		String[] cvmArgs = new String[evmArgs.length + extraArgs];
 		System.arraycopy(evmArgs, 0, cvmArgs, extraArgs, evmArgs.length);	// Put existing into new list at the end.		
 		
-		cvmArgs[0] = "-Dproxyvm.registryKey=" + registryKey;
-		cvmArgs[1] = "-Dproxyvm.masterPort=" + String.valueOf(masterServerPort);
-		cvmArgs[2] = "-Dproxyvm.bufsize=" + bufSize;
-		cvmArgs[3] = "-Dproxyvm.servername=" + name;
+		cvmArgs[0] = "-Dproxyvm.registryKey=" + registryKey; //$NON-NLS-1$
+		cvmArgs[1] = "-Dproxyvm.masterPort=" + String.valueOf(masterServerPort); //$NON-NLS-1$
+		cvmArgs[2] = "-Dproxyvm.bufsize=" + bufSize; //$NON-NLS-1$
+		cvmArgs[3] = "-Dproxyvm.servername=" + name; //$NON-NLS-1$
 
 		// If in debug mode, we need to find a port for it to use.
 		int dport = -1;
 		if (debugMode) {
 			dport = findUnusedLocalPort("localhost", 5000, 15000, new int[0]); //$NON-NLS-1$
-			cvmArgs[4] = "-Djava.compiler=NONE";
-			cvmArgs[5] = "-Xdebug";
-			cvmArgs[6] = "-Xnoagent";
-			cvmArgs[7] = "-Xrunjdwp:transport=dt_socket,server=y,address=" + dport;
+			cvmArgs[4] = "-Djava.compiler=NONE"; //$NON-NLS-1$
+			cvmArgs[5] = "-Xdebug"; //$NON-NLS-1$
+			cvmArgs[6] = "-Xnoagent"; //$NON-NLS-1$
+			cvmArgs[7] = "-Xrunjdwp:transport=dt_socket,server=y,address=" + dport; //$NON-NLS-1$
 		}
 		
 		if (!javaLibPaths.isEmpty()) {
@@ -207,7 +207,7 @@
 				appendTo = new StringBuffer(evmArgs[existingLibpaths]); 
 				appendTo.append(File.pathSeparatorChar);	// Plus a separator so we can append
 			} else 
-				appendTo = new StringBuffer("-Djava.library.path=");
+				appendTo = new StringBuffer("-Djava.library.path="); //$NON-NLS-1$
 			for (int i = 0; i < javaLibPaths.size(); i++) {
 				if (i != 0)
 					appendTo.append(File.pathSeparator);
@@ -308,7 +308,7 @@
 						IStatus.WARNING,
 						ProxyPlugin.getPlugin().getBundle().getSymbolicName(),
 						0,
-						"Debugger attach canceled",
+						"Debugger attach canceled", //$NON-NLS-1$
 						null));
 			}
 		}
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMExpression.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMExpression.java
index 2413865..454aee4 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMExpression.java
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMExpression.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: REMExpression.java,v $
- *  $Revision: 1.3 $  $Date: 2004/02/20 00:44:05 $ 
+ *  $Revision: 1.4 $  $Date: 2004/06/02 19:59:11 $ 
  */
 package org.eclipse.jem.internal.proxy.remote;
 
@@ -53,9 +53,9 @@
 	/**
 	 * General IOException occurred msg.
 	 */
-	protected static final String IO_EXCEPTION_MSG = "I/O Exception occurred. See .log file for details.";
+	protected static final String IO_EXCEPTION_MSG = ProxyRemoteMessages.getString("REMExpression.IOExceptionSeeLog"); //$NON-NLS-1$
 	
-	protected static final String COMMAND_EXCEPTION_MSG = "Command Exception occurred. See .log file for details.";
+	protected static final String COMMAND_EXCEPTION_MSG = ProxyRemoteMessages.getString("REMExpression.CommandExceptionSeeLog"); //$NON-NLS-1$
 	
 	/**
 	 * Throw an an illegal state exception if some general error, in particular an I/O or Command Exception
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMProxyFactoryRegistry.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMProxyFactoryRegistry.java
index 220e11f..410a36c 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMProxyFactoryRegistry.java
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMProxyFactoryRegistry.java
@@ -11,7 +11,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: REMProxyFactoryRegistry.java,v $
- *  $Revision: 1.7 $  $Date: 2004/05/24 23:23:36 $ 
+ *  $Revision: 1.8 $  $Date: 2004/06/02 19:59:11 $ 
  */
 
 
@@ -300,7 +300,7 @@
 			if (c.isConnected())
 				return c;
 			else
-				throw new IllegalStateException("Callback connection is not working.");
+				throw new IllegalStateException(ProxyRemoteMessages.getString("REMProxyFactoryRegistry.CallbackConnectionNotWorking")); //$NON-NLS-1$
 		}
 		synchronized(fConnectionPool) {
 			if (!fConnectionPool.isEmpty())
@@ -355,8 +355,8 @@
 			
 			if (scArray[0] == null)  {
 				// Log where we are at so we can know where it was we down.
-				ProxyPlugin.getPlugin().getLogger().log(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getBundle().getSymbolicName(), 0, "", new RuntimeException("Connection creation failed.")));	//$NON-NLS-1$
-				throw new IllegalStateException("Could not create a socket connection to remote vm.");	// Couldn't get one, probably server is down.
+				ProxyPlugin.getPlugin().getLogger().log(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getBundle().getSymbolicName(), 0, "", new RuntimeException(ProxyRemoteMessages.getString("REMProxyFactoryRegistry.ConnectionCreationFailed"))));	//$NON-NLS-1$ //$NON-NLS-2$
+				throw new IllegalStateException(ProxyRemoteMessages.getString("REMProxyFactoryRegistry.CouldNotCreateSocketConnectionToRemoteVM"));	// Couldn't get one, probably server is down. //$NON-NLS-1$
 			}
 
 			REMConnection connection = new REMConnection(scArray[0], fNoTimeouts);
@@ -371,7 +371,7 @@
 		} else
 			ProxyPlugin.getPlugin().getLogger().log(new Status(IStatus.WARNING, ProxyPlugin.getPlugin().getBundle().getSymbolicName(), 0, "No Server to retrieve a connection.", null));	///$NON-NLS-1$
 		
-		throw new IllegalStateException("Could not create a socket connection to remote vm.");
+		throw new IllegalStateException(ProxyRemoteMessages.getString("REMProxyFactoryRegistry.CouldNotCreateSocketConnectionToRemoteVM")); //$NON-NLS-1$
 	}
 		 
 	/**
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMRegistryController.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMRegistryController.java
index 8193f91..1492236 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMRegistryController.java
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMRegistryController.java
@@ -11,7 +11,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: REMRegistryController.java,v $
- *  $Revision: 1.4 $  $Date: 2004/05/18 17:55:51 $ 
+ *  $Revision: 1.5 $  $Date: 2004/06/02 19:59:11 $ 
  */
 
 import java.util.HashMap;
@@ -34,7 +34,7 @@
 	private static final long CLEANUP_INTERVAL = 60000l;	// The interval between clean up job execution.
 	
 	// Thread to clean up GC'd proxies. Runs as a daemon at the lowest priority
-	private Job processQueueJob= new Job(ProxyRemoteMessages.getString("CleanupJob.title")) {
+	private Job processQueueJob= new Job(ProxyRemoteMessages.getString("CleanupJob.title")) { //$NON-NLS-1$
 		public IStatus run(IProgressMonitor m) {
 				REMProxyFactoryRegistry[] registries = null;
 				synchronized (REMRegistryController.this) {
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/messages.properties b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/messages.properties
index f755988..12b115e 100644
--- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/messages.properties
+++ b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/messages.properties
@@ -10,7 +10,7 @@
 ###############################################################################
 #
 # $Source: /cvsroot/webtools/jeetools.move/webtools.javaee.git/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/messages.properties,v $
-# $Revision: 1.4 $  $Date: 2004/03/04 16:14:04 $
+# $Revision: 1.5 $  $Date: 2004/06/02 19:59:11 $
 #
 
 
@@ -60,3 +60,8 @@
 
 CleanupJob.title=Remote VM Cleanup GC'd Proxies Job
 
+REMProxyFactoryRegistry.CallbackConnectionNotWorking=Callback connection is not working.
+REMProxyFactoryRegistry.ConnectionCreationFailed=Connection creation failed.
+REMProxyFactoryRegistry.CouldNotCreateSocketConnectionToRemoteVM=Could not create a socket connection to remote vm.
+REMExpression.IOExceptionSeeLog=I/O Exception occurred. See .log file for details.
+REMExpression.CommandExceptionSeeLog=Command Exception occurred. See .log file for details.
diff --git a/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/ProxyLaunchToolbarDelegate.java b/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/ProxyLaunchToolbarDelegate.java
index 9bf0e93..cda9af6 100644
--- a/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/ProxyLaunchToolbarDelegate.java
+++ b/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/ProxyLaunchToolbarDelegate.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: ProxyLaunchToolbarDelegate.java,v $
- *  $Revision: 1.2 $  $Date: 2004/05/24 23:23:43 $ 
+ *  $Revision: 1.3 $  $Date: 2004/06/02 19:59:58 $ 
  */
 package org.eclipse.jem.internal.ui.proxy;
 
@@ -120,7 +120,7 @@
 		if (selectDelegate.isEnabled())
 			action.setToolTipText(selectDelegate.getToolTipText());
 		else
-			action.setToolTipText(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.proxyLaunchTip"));
+			action.setToolTipText(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.proxyLaunchTip")); //$NON-NLS-1$
 			
 	}
 
diff --git a/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/SelectDefaultConfigurationActionDelegate.java b/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/SelectDefaultConfigurationActionDelegate.java
index eada4d8..d8e37fd 100644
--- a/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/SelectDefaultConfigurationActionDelegate.java
+++ b/plugins/org.eclipse.jem.ui/ui/org/eclipse/jem/internal/ui/proxy/SelectDefaultConfigurationActionDelegate.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: SelectDefaultConfigurationActionDelegate.java,v $
- *  $Revision: 1.2 $  $Date: 2004/05/24 23:23:43 $ 
+ *  $Revision: 1.3 $  $Date: 2004/06/02 19:59:58 $ 
  */
 package org.eclipse.jem.internal.ui.proxy;
 
@@ -78,7 +78,7 @@
 	 * @since 1.0.0
 	 */
 	public SelectDefaultConfigurationActionDelegate() {
-		super(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.selectDefault"));
+		super(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.selectDefault")); //$NON-NLS-1$
 		setEnabled(false);
 	}
 
@@ -126,7 +126,7 @@
 		if (action != null)			
 			action.setEnabled(isEnabled());
 		if (javaproject != null)
-			setToolTipText(MessageFormat.format(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.selectDefaultTip"), new Object[] {javaproject.getElementName()}));
+			setToolTipText(MessageFormat.format(Platform.getResourceString(JEMUIPlugin.getPlugin().getBundle(), "%Action.selectDefaultTip"), new Object[] {javaproject.getElementName()})); //$NON-NLS-1$
 		else
 			setToolTipText(getText());
 	}
diff --git a/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/ParseTreeCreationFromAST.java b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/ParseTreeCreationFromAST.java
index 8ff49f4..01c1abc 100644
--- a/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/ParseTreeCreationFromAST.java
+++ b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/ParseTreeCreationFromAST.java
@@ -10,7 +10,7 @@
  *******************************************************************************/
 /*
  *  $RCSfile: ParseTreeCreationFromAST.java,v $
- *  $Revision: 1.6 $  $Date: 2004/05/26 14:41:32 $ 
+ *  $Revision: 1.7 $  $Date: 2004/06/02 20:02:54 $ 
  */
 package org.eclipse.jem.workbench.utility;
 
@@ -138,7 +138,7 @@
 			return perform(astExpression);
 		} catch (InvalidExpressionException e) {
 			// Create a msg that is formed of the exception message and the full init string.
-			String msg = MessageFormat.format("{0} - {1}", new Object[] {e.getLocalizedMessage(), astExpression.toString()});
+			String msg = MessageFormat.format(WorkbenchUtilityMessages.getString("ParseTreeCreationFromAST.0"), new Object[] {e.getLocalizedMessage(), astExpression.toString()}); //$NON-NLS-1$
 			PTInvalidExpression exp = InstantiationFactory.eINSTANCE.createPTInvalidExpression();
 			exp.setMessage(msg);
 			return exp;
@@ -167,7 +167,7 @@
 			expression = null;
 			astExpression.accept(this);
 			if (expression == null)
-				throw new InvalidExpressionException(MessageFormat.format("Expression \"{0}\" is too complicated.", new Object[] {astExpression.toString()}));
+				throw new InvalidExpressionException(MessageFormat.format(WorkbenchUtilityMessages.getString("ParseTreeCreationFromAST.ExpressionTooComplicated"), new Object[] {astExpression.toString()})); //$NON-NLS-1$
 			return expression;
 		} else
 			return null;	// This is ok. It means an optional expression was being processed and the expression didn't exist.
@@ -267,7 +267,7 @@
 	 */
 	public boolean visit(ClassInstanceCreation node) {
 		if (node.getAnonymousClassDeclaration() != null) {
-			throw new InvalidExpressionException("Cannot process anonymous declarations.");
+			throw new InvalidExpressionException(WorkbenchUtilityMessages.getString("ParseTreeCreationFromAST.CannotProcessAnonymousDeclarations.")); //$NON-NLS-1$
 		}
 		PTClassInstanceCreation cic = InstantiationFactory.eINSTANCE.createPTClassInstanceCreation();
 		PTExpression type = perform(node.getName());
@@ -346,7 +346,7 @@
 		if (inoper == null) {
 			// It is not one we can handle.
 			throw new InvalidExpressionException(
-					MessageFormat.format("Operator \"{0}\" is too complicated to handle.", new Object[] { node.getOperator().toString() }));
+					MessageFormat.format(WorkbenchUtilityMessages.getString("ParseTreeCreationFromAST.OperatorTooComplicatedToHandle"), new Object[] { node.getOperator().toString() })); //$NON-NLS-1$
 		}
 		inf.setOperator(inoper);
 		inf.setRightOperand(perform(node.getRightOperand()));
@@ -460,7 +460,7 @@
 		if (ptoper == null) {
 			// It is not one we can handle.
 			throw new InvalidExpressionException(
-				MessageFormat.format("Operator \"{0}\" is too complicated to handle.", new Object[] { node.getOperator().toString() }));
+				MessageFormat.format(WorkbenchUtilityMessages.getString("ParseTreeCreationFromAST.OperatorTooComplicatedToHandle"), new Object[] { node.getOperator().toString() })); //$NON-NLS-1$
 		}
 		pe.setOperator(ptoper);
 		expression = pe;
diff --git a/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/WorkbenchUtilityMessages.java b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/WorkbenchUtilityMessages.java
new file mode 100644
index 0000000..f0237f5
--- /dev/null
+++ b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/WorkbenchUtilityMessages.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 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
+ * http://www.eclipse.org/legal/cpl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+/*
+ *  $RCSfile: WorkbenchUtilityMessages.java,v $
+ *  $Revision: 1.1 $  $Date: 2004/06/02 20:02:54 $ 
+ */
+package org.eclipse.jem.workbench.utility;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author sri
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public class WorkbenchUtilityMessages {
+
+	private static final String BUNDLE_NAME = "org.eclipse.jem.workbench.utility.messages";//$NON-NLS-1$
+
+	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+
+	private WorkbenchUtilityMessages() {
+	}
+
+	public static String getString(String key) {
+		// TODO Auto-generated method stub
+		try {
+			return RESOURCE_BUNDLE.getString(key);
+		} catch (MissingResourceException e) {
+			return '!' + key + '!';
+		}
+	}
+}
\ No newline at end of file
diff --git a/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/messages.properties b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/messages.properties
new file mode 100644
index 0000000..3a1c9b8
--- /dev/null
+++ b/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/workbench/utility/messages.properties
@@ -0,0 +1,4 @@
+ParseTreeCreationFromAST.0={0} - {1}
+ParseTreeCreationFromAST.ExpressionTooComplicated=Expression "{0}" is too complicated.
+ParseTreeCreationFromAST.CannotProcessAnonymousDeclarations.=Cannot process anonymous declarations.
+ParseTreeCreationFromAST.OperatorTooComplicatedToHandle=Operator "{0}" is too complicated to handle.