org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/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 package org.symbian.tools.wrttools.previewer.utils.noexport; |
|
20 |
|
21 import java.util.MissingResourceException; |
|
22 import java.util.ResourceBundle; |
|
23 |
|
24 /** |
|
25 * @author eswartz |
|
26 * |
|
27 */ |
|
28 public class Messages { |
|
29 private static final String BUNDLE_NAME = "com.nokia.sdt.utils.noexport.messages";//$NON-NLS-1$ |
|
30 |
|
31 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle |
|
32 .getBundle(BUNDLE_NAME); |
|
33 |
|
34 private Messages() { |
|
35 } |
|
36 |
|
37 public static String getString(String key) { |
|
38 try { |
|
39 return RESOURCE_BUNDLE.getString(key); |
|
40 } catch (MissingResourceException e) { |
|
41 return '!' + key + '!'; |
|
42 } |
|
43 } |
|
44 } |