1 | public String getSymbolicName()↵ | | 1 | public String getSymbolicName()↵
|
2 | {↵ | | 2 | ↵
|
3 | ↵ | | 3 | {↵
|
4 | return helper.getSymbolicName();↵ | | 4 | return helper.getSymbolicName();↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /*↵ | | 6 | /*↵
|
7 | * Javadoc copied from interface.↵ | | 7 | * Javadoc copied from interface.↵
|
8 | */↵ | | 8 | */↵
|
9 | public URL getBaseURL()↵ | | 9 | public URL getBaseURL()↵
|
10 | {↵ | | 10 | {↵
|
11 | return helper.getBaseURL();↵ | | 11 | return helper.getBaseURL();↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /*↵ | | 13 | /*↵
|
14 | * Javadoc copied from interface.↵ | | 14 | * Javadoc copied from interface.↵
|
15 | */↵ | | 15 | */↵
|
16 | public Object getImage(String key)↵ | | 16 | public Object getImage(String key)↵
|
17 | {↵ | | 17 | ↵
|
18 | ↵ | | 18 | {↵
|
19 | try↵ | | 19 | try↵
|
20 | {↵ | | 20 | ↵
|
21 | ↵ | | 21 | {↵
|
22 | return doGetImage(key);↵ | | 22 | return doGetImage(key);↵
|
23 | }↵ | | 23 | ↵
|
24 | ↵ | | 24 | }↵
|
25 | catch (MalformedURLException exception)↵ | | 25 | catch (MalformedURLException exception)↵
|
26 | {↵ | | 26 | ↵
|
27 | ↵ | | 27 | {↵
|
28 | throw new WrappedException(exception);↵ | | 28 | throw new WrappedException(exception);↵
|
29 | }↵ | | 29 | ↵
|
30 | ↵ | | 30 | }↵
|
31 | catch (IOException exception)↵ | | 31 | catch (IOException exception)↵
|
32 | {↵ | | 32 | ↵
|
33 | ↵ | | 33 | {↵
|
34 | throw ↵ | | 34 | throw ↵
|
35 | new MissingResourceException↵ | | 35 | new MissingResourceException↵
|
36 | (CommonPlugin.INSTANCE.getString("_UI_StringResourceNotFound_exception", new Object [] { key }),↵ | | 36 | (CommonPlugin.INSTANCE.getString("_UI_StringResourceNotFound_exception", new Object [] { key }),↵
|
37 | getClass().getName(), ↵ | | 37 | getClass().getName(), ↵
|
38 | key);↵ | | 38 | key);↵
|
39 | }↵ | | 39 | }↵
|
40 | }↵ | | 40 | }↵
|
|
41 | /**↵ | | 41 | /**↵
|
42 | * Does the work of fetching the image associated with the key.↵ | | 42 | * Does the work of fetching the image associated with the key.↵
|
43 | * It ensures that the image exists.↵ | | 43 | * It ensures that the image exists.↵
|
44 | * @param key the key of the image to fetch.↵ | | 44 | * @param key the key of the image to fetch.↵
|
45 | * @exception IOException if an image doesn't exist.↵ | | 45 | * @exception IOException if an image doesn't exist.↵
|
46 | * @return the description of the image associated with the key.↵ | | 46 | * @return the description of the image associated with the key.↵
|
47 | */↵ | | 47 | */↵
|
48 | protected Object doGetImage(String key) throws IOException↵ | | 48 | protected Object doGetImage(String key) throws IOException↵
|
49 | {↵ | | 49 | ↵
|
50 | ↵ | | 50 | {↵
|
51 | return helper.getImage(key);↵ | | 51 | return helper.getImage(key);↵
|
52 | }↵ | | 52 | }↵
|
|
53 | public String getString(String key)↵ | | 53 | public String getString(String key)↵
|
54 | {↵ | | 54 | {↵
|
55 | return helper.getString(key, true);↵ | | 55 | return helper.getString(key, true);↵
|
56 | }↵ | | 56 | }↵
|
57 | ↵ | | 57 | ↵
|
58 | ↵ | | |
|
59 | public String getString(String key, boolean translate)↵ | | 58 | public String getString(String key, boolean translate)↵
|
60 | {↵ | | 59 | ↵
|
61 | ↵ | | 60 | {↵
|
62 | return helper.getString(key, translate);↵ | | 61 | return helper.getString(key, translate);↵
|
63 | }↵ | | 62 | }↵
|
|
64 | public String getString(String key, Object [] substitutions)↵ | | 63 | public String getString(String key, Object [] substitutions)↵
|
65 | {↵ | | 64 | {↵
|
66 | return helper.getString(key, substitutions, true);↵ | | 65 | return helper.getString(key, substitutions, true);↵
|
67 | }↵ | | 66 | }↵
|
|
68 | public String getString(String key, Object [] substitutions, boolean translate)↵ | | 67 | public String getString(String key, Object [] substitutions, boolean translate)↵
|
69 | {↵ | | 68 | ↵
|
70 | ↵ | | 69 | {↵
|
71 | return helper.getString(key, substitutions, translate);↵ | | 70 | return helper.getString(key, substitutions, translate);↵
|
72 | }↵ | | 71 | }↵
|
|
73 | public void log(Object logEntry)↵ | | 72 | public void log(Object logEntry)↵
|
74 | {↵ | | 73 | ↵
|
75 | ↵ | | 74 | {↵
|
76 | helper.log(logEntry); | | 75 | helper.log(logEntry);
|