diff options
author | Kevin Barnes | 2005-04-06 18:48:58 +0000 |
---|---|---|
committer | Kevin Barnes | 2005-04-06 18:48:58 +0000 |
commit | 248a96d1c663940cd16eccecc70ecba7835d003e (patch) | |
tree | ffd7b58c89ecd2e2b76e5ca06be1b0558c0fe783 /org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java | |
parent | 2e27e58d51f8a326892c181a5240ebe2a9be2475 (diff) | |
download | eclipse.platform.debug-248a96d1c663940cd16eccecc70ecba7835d003e.tar.gz eclipse.platform.debug-248a96d1c663940cd16eccecc70ecba7835d003e.tar.xz eclipse.platform.debug-248a96d1c663940cd16eccecc70ecba7835d003e.zip |
Bug 90318 - Change string externalization to use new format
Diffstat (limited to 'org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java')
-rw-r--r-- | org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java index f47427a4a..488596f4a 100644 --- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java +++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java @@ -1,33 +1,39 @@ -/******************************************************************************* - * 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 +/********************************************************************** + * Copyright (c) 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 - *******************************************************************************/ + * Contributors: + * IBM - Initial API and implementation + **********************************************************************/ package org.eclipse.core.internal.variables; -import java.util.MissingResourceException; -import java.util.ResourceBundle; +import org.eclipse.osgi.util.NLS; -public class VariablesMessages { +public class VariablesMessages extends NLS { + private static final String BUNDLE_NAME = "org.eclipse.core.internal.variables.VariablesMessages";//$NON-NLS-1$ + // + // 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 + // - private static final String BUNDLE_NAME = "org.eclipse.core.internal.variables.VariablesMessages"; //$NON-NLS-1$ + public static String StringSubstitutionEngine_3; + public static String StringSubstitutionEngine_4; - private static final ResourceBundle RESOURCE_BUNDLE = - ResourceBundle.getBundle(BUNDLE_NAME); + public static String StringVariableManager_26; + public static String StringVariableManager_27; - private VariablesMessages() { - } + public static String DynamicVariable_0; - public static String getString(String key) { - try { - return RESOURCE_BUNDLE.getString(key); - } catch (MissingResourceException e) { - return '!' + key + '!'; - } + static { + // load message values from bundle file + NLS.initializeMessages(BUNDLE_NAME, VariablesMessages.class); } -} +}
\ No newline at end of file |