debuggercdi/com.nokia.carbide.cpp.debug.crashdebugger/src/com/nokia/carbide/cpp/debug/crashdebugger/Messages.java
author fturovic <frank.turovich@nokia.com>
Tue, 07 Apr 2009 15:28:30 -0500
changeset 72 5464a0b24d87
parent 2 d760517a8095
permissions -rw-r--r--
removed license page and TOC entry for 2.1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
package com.nokia.carbide.cpp.debug.crashdebugger;
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
import java.util.MissingResourceException;
cawthron
parents:
diff changeset
    20
import java.util.ResourceBundle;
cawthron
parents:
diff changeset
    21
cawthron
parents:
diff changeset
    22
public class Messages {
cawthron
parents:
diff changeset
    23
	private static final String BUNDLE_NAME = "com.nokia.carbide.cpp.debug.crashdebugger.messages"; //$NON-NLS-1$
cawthron
parents:
diff changeset
    24
cawthron
parents:
diff changeset
    25
	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
cawthron
parents:
diff changeset
    26
			.getBundle(BUNDLE_NAME);
cawthron
parents:
diff changeset
    27
cawthron
parents:
diff changeset
    28
	private Messages() {
cawthron
parents:
diff changeset
    29
	}
cawthron
parents:
diff changeset
    30
cawthron
parents:
diff changeset
    31
	public static String getString(String key) {
cawthron
parents:
diff changeset
    32
		try {
cawthron
parents:
diff changeset
    33
			return RESOURCE_BUNDLE.getString(key);
cawthron
parents:
diff changeset
    34
		} catch (MissingResourceException e) {
cawthron
parents:
diff changeset
    35
			return '!' + key + '!';
cawthron
parents:
diff changeset
    36
		}
cawthron
parents:
diff changeset
    37
	}
cawthron
parents:
diff changeset
    38
}