diff options
author | kchan | 2005-11-08 17:57:21 +0000 |
---|---|---|
committer | kchan | 2005-11-08 17:57:21 +0000 |
commit | edc326b2f67e531f5941bc788c9483fdc84e9f85 (patch) | |
tree | fea117b92b212cb3375f91882434c8ae560c1669 /bundles/org.eclipse.wst.command.env.core | |
parent | 58dfefbaf2d55fa043952fa8fdff96b5ee8f2619 (diff) | |
download | webtools.webservices-edc326b2f67e531f5941bc788c9483fdc84e9f85.tar.gz webtools.webservices-edc326b2f67e531f5941bc788c9483fdc84e9f85.tar.xz webtools.webservices-edc326b2f67e531f5941bc788c9483fdc84e9f85.zip |
[93111] Convert to NLS message class.
Diffstat (limited to 'bundles/org.eclipse.wst.command.env.core')
-rw-r--r-- | bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF | 3 | ||||
-rw-r--r-- | bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCore.properties (renamed from bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/env/core/environment.properties) | 13 | ||||
-rw-r--r-- | bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCoreMessages.java | 31 | ||||
-rw-r--r-- | bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java | 6 |
4 files changed, 39 insertions, 14 deletions
diff --git a/bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF index 307226adb..8e20a34ee 100644 --- a/bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF @@ -5,8 +5,7 @@ Bundle-SymbolicName: org.eclipse.wst.command.env.core Bundle-Version: 1.0.0 Bundle-Vendor: %PLUGIN_PROVIDER Bundle-Localization: plugin -Export-Package: org.eclipse.wst.command.env.core, - org.eclipse.wst.command.internal.env.core.data, +Export-Package: org.eclipse.wst.command.internal.env.core.data, org.eclipse.wst.command.internal.env.core.fragment, org.eclipse.wst.command.internal.env.core.registry, org.eclipse.wst.command.internal.env.core, diff --git a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/env/core/environment.properties b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCore.properties index b1d7769a6..429c18eaa 100644 --- a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/env/core/environment.properties +++ b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCore.properties @@ -4,21 +4,16 @@ # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html -# +# # Contributors: # IBM Corporation - initial API and implementation ############################################################################### # -# Messages for SimpleURIFactory -# -MSG_NULL_ARG_SPECIFIED=Null specified as argument to {0}. -MSG_SCHEME_NOT_FOUND=Scheme not found for URI {0}. -MSG_ABSOLUTE_PATH_WITHOUT_SCHEME=Absolute path specified without a scheme for URI {0}. - -# # Common Messages # -MSG_URI_NOT_RELATIVE=URL: {0} is not relative. MSG_ERROR_UNEXPECTED_ERROR=IWAB0014E Unexpected exception occured. +TITLE_WARNING=Warning: +TITLE_ERROR=Error: +TITLE_INFO=Info: diff --git a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCoreMessages.java b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCoreMessages.java new file mode 100644 index 000000000..94581af68 --- /dev/null +++ b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCoreMessages.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation 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 + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.wst.command.internal.env.core; + +import org.eclipse.osgi.util.NLS; + +public final class EnvironmentCoreMessages extends NLS { + + private static final String BUNDLE_NAME = "org.eclipse.wst.command.internal.env.core.EnvironmentCore";//$NON-NLS-1$ + + private EnvironmentCoreMessages() { + // Do not instantiate + } + + public static String MSG_ERROR_UNEXPECTED_ERROR; + public static String TITLE_WARNING; + public static String TITLE_ERROR; + public static String TITLE_INFO; + + static { + NLS.initializeMessages(BUNDLE_NAME, EnvironmentCoreMessages.class); + } +}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java index d4fce3d4b..13c0fd566 100644 --- a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java +++ b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java @@ -11,13 +11,14 @@ package org.eclipse.wst.command.internal.env.core.fragment; import java.util.Stack; + import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.Status; import org.eclipse.wst.command.internal.env.core.CommandFactory; import org.eclipse.wst.command.internal.env.core.CommandManager; -import org.eclipse.wst.command.internal.env.core.common.MessageUtils; +import org.eclipse.wst.command.internal.env.core.EnvironmentCoreMessages; import org.eclipse.wst.command.internal.env.core.common.StatusUtils; import org.eclipse.wst.command.internal.env.core.data.DataFlowManager; import org.eclipse.wst.command.internal.env.core.data.DataMappingRegistry; @@ -350,10 +351,9 @@ public class CommandFragmentEngine implements CommandManager } catch( Throwable exc ) { - MessageUtils utils = new MessageUtils( "org.eclipse.wst.command.env.core.environment", this ); IStatus unexpectedError = StatusUtils.errorStatus( exc ); MultiStatus parentStatus = new MultiStatus( "id", 0, new IStatus[]{unexpectedError}, - utils.getMessage( "MSG_ERROR_UNEXPECTED_ERROR" ), null ); + EnvironmentCoreMessages.MSG_ERROR_UNEXPECTED_ERROR, null ); environment_.getStatusHandler().reportError( parentStatus ); } finally |