mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Cleanup of Messages.properties and Messages.java files continued.
Change-Id: Ia8dd64344b368c00d72006a9abdea7cc2019d637
This commit is contained in:
parent
5cc7505a12
commit
6ff7af7dc6
3 changed files with 37 additions and 3 deletions
|
@ -9,10 +9,10 @@
|
|||
</filter>
|
||||
</resource>
|
||||
<resource path="templateengine/org/eclipse/cdt/core/templateengine/TemplateEngineMessages.java" type="org.eclipse.cdt.core.templateengine.TemplateEngineMessages">
|
||||
<filter id="305365105">
|
||||
<filter id="338944126">
|
||||
<message_arguments>
|
||||
<message_argument value="org.eclipse.cdt.core.templateengine.TemplateEngineMessages"/>
|
||||
<message_argument value="org.eclipse.cdt.core_5.8.0"/>
|
||||
<message_argument value="getString(String)"/>
|
||||
</message_arguments>
|
||||
</filter>
|
||||
</resource>
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007 Symbian Software Limited 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:
|
||||
* Bala Torati (Symbian) - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.templateengine;
|
||||
|
||||
/**
|
||||
* @noreference This class is not intended to be referenced by clients.
|
||||
* @deprecated Provide your own messages.
|
||||
*/
|
||||
@Deprecated
|
||||
public class TemplateEngineMessages {
|
||||
private TemplateEngineMessages() {
|
||||
}
|
||||
|
||||
public static String ProcessRunner_missingArg;
|
||||
|
||||
public static String getString(String key) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
|
@ -13,12 +13,19 @@ package org.eclipse.cdt.core.templateengine.process;
|
|||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
class Messages {
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
class Messages extends NLS {
|
||||
private static final ResourceBundle RESOURCE_BUNDLE =
|
||||
ResourceBundle.getBundle(Messages.class.getName());
|
||||
|
||||
public static String ProcessRunner_missingArg;
|
||||
|
||||
static {
|
||||
// Initialize resource bundle.
|
||||
NLS.initializeMessages(Messages.class.getName(), Messages.class);
|
||||
}
|
||||
|
||||
private Messages() {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue