Line | Hits | Source |
---|---|---|
1 | package ui; | |
2 | ||
3 | import java.util.MissingResourceException; | |
4 | import java.util.ResourceBundle; | |
5 | ||
6 | 2 | public class Messages { |
7 | private static final String BUNDLE_NAME = "ui.resource.text.strings"; //$NON-NLS-1$ | |
8 | ||
9 | 8 | private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle |
10 | 2 | .getBundle(BUNDLE_NAME); |
11 | ||
12 | 0 | private Messages() { |
13 | 0 | } |
14 | ||
15 | public static String getString(String key) { | |
16 | // TODO Auto-generated method stub | |
17 | try { | |
18 | 8 | return RESOURCE_BUNDLE.getString(key); |
19 | 0 | } catch (MissingResourceException e) { |
20 | 0 | return '!' + key + '!'; |
21 | } | |
22 | } | |
23 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |