org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/sdt/utils/noexport/Messages.java
equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2009 Symbian Foundation 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 * Symbian Foundation - initial contribution. |
|
11 * Contributors: |
|
12 * Description: |
|
13 * Overview: |
|
14 * Details: |
|
15 * Platforms/Drives/Compatibility: |
|
16 * Assumptions/Requirement/Pre-requisites: |
|
17 * Failures and causes: |
|
18 */ |
|
19 |
|
20 package org.symbian.tools.wrttools.sdt.utils.noexport; |
|
21 |
|
22 import java.util.MissingResourceException; |
|
23 import java.util.ResourceBundle; |
|
24 |
|
25 /** |
|
26 * @author eswartz |
|
27 * |
|
28 */ |
|
29 public class Messages { |
|
30 private static final String BUNDLE_NAME = "com.nokia.sdt.utils.noexport.messages";//$NON-NLS-1$ |
|
31 |
|
32 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle |
|
33 .getBundle(BUNDLE_NAME); |
|
34 |
|
35 private Messages() { |
|
36 } |
|
37 |
|
38 public static String getString(String key) { |
|
39 try { |
|
40 return RESOURCE_BUNDLE.getString(key); |
|
41 } catch (MissingResourceException e) { |
|
42 return '!' + key + '!'; |
|
43 } |
|
44 } |
|
45 } |