[572025] Slight cleanup to classpath container labels
diff --git a/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/Messages.properties b/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/Messages.properties index dfe0350..353a433 100644 --- a/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/Messages.properties +++ b/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/Messages.properties
@@ -12,8 +12,8 @@ ############################################################################### classpathContainerDescription=Server Library -classpathContainer=Server Runtime {0} [{1}] -classpathContainerUnbound=Server Runtime {0} [{1}] (unbound) +classpathContainer=Server Runtime [{0}] +classpathContainerUnbound=Server Runtime [{0}] (unbound) errorLocation=Invalid location. errorJRE=Invalid JRE.
diff --git a/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/RuntimeClasspathContainer.java b/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/RuntimeClasspathContainer.java index 18d6f0e..82578d5 100644 --- a/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/RuntimeClasspathContainer.java +++ b/plugins/org.eclipse.jst.server.core/src/org/eclipse/jst/server/core/internal/RuntimeClasspathContainer.java
@@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2011 IBM Corporation and others. + * Copyright (c) 2003, 2021 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -101,9 +101,9 @@ if (curRuntime != null) { IRuntimeType runtimeType = curRuntime.getRuntimeType(); if (runtimeType != null) - return NLS.bind(Messages.classpathContainer, runtimeType.getName(), curRuntime.getName()); + return NLS.bind(Messages.classpathContainer, curRuntime.getName()); } - return NLS.bind(Messages.classpathContainerUnbound, Messages.classpathContainerDescription, runtimeId); + return NLS.bind(Messages.classpathContainerUnbound, runtimeId); } /** (non-Javadoc)