956
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.cdt.internal.debug.launch.newwizard;
|
|
18 |
|
|
19 |
import java.util.MissingResourceException;
|
|
20 |
import java.util.ResourceBundle;
|
|
21 |
|
|
22 |
public class Messages {
|
|
23 |
private static final String BUNDLE_NAME = "com.nokia.cdt.internal.debug.launch.newwizard.messages"; //$NON-NLS-1$
|
|
24 |
|
|
25 |
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
|
|
26 |
.getBundle(BUNDLE_NAME);
|
|
27 |
|
|
28 |
private Messages() {
|
|
29 |
}
|
|
30 |
|
|
31 |
public static String getString(String key) {
|
|
32 |
try {
|
|
33 |
return RESOURCE_BUNDLE.getString(key);
|
|
34 |
} catch (MissingResourceException e) {
|
|
35 |
return '!' + key + '!';
|
|
36 |
}
|
|
37 |
}
|
|
38 |
}
|