aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java')
-rw-r--r--src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java35
1 files changed, 27 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
index a064d3d..ad709cb 100644
--- a/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
+++ b/src/net/java/sip/communicator/plugin/zeroconfaccregwizz/Resources.java
@@ -14,7 +14,8 @@ import net.java.sip.communicator.util.*;
/**
* The Resources class manages the access to the internationalization
- * properties files.
+ * properties files and the images properties file.
+ *
* @author Christian Vincenot
* @author Maxime Catelin
*/
@@ -23,11 +24,31 @@ public class Resources
private static Logger log = Logger.getLogger(Resources.class);
- private static final String BUNDLE_NAME
+ /**
+ * The name of the resource, where internationalization strings for this
+ * plugin are stored.
+ */
+ private static final String STRING_RESOURCE_NAME
+ = "resources.languages.plugin.zeroconfaccregwizz.resources";
+
+ /**
+ * The name of the resource, where paths to images used in this bundle are
+ * stored.
+ */
+ private static final String IMAGE_RESOURCE_NAME
= "net.java.sip.communicator.plugin.zeroconfaccregwizz.resources";
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
+ /**
+ * The string resource bundle.
+ */
+ private static final ResourceBundle STRING_RESOURCE_BUNDLE
+ = ResourceBundle.getBundle(STRING_RESOURCE_NAME);
+
+ /**
+ * The image resource bundle.
+ */
+ private static final ResourceBundle IMAGE_RESOURCE_BUNDLE
+ = ResourceBundle.getBundle(IMAGE_RESOURCE_NAME);
public static ImageID ZEROCONF_LOGO = new ImageID("protocolIcon");
@@ -42,8 +63,7 @@ public class Resources
{
try
{
- return RESOURCE_BUNDLE.getString(key);
-
+ return STRING_RESOURCE_BUNDLE.getString(key);
}
catch (MissingResourceException exc)
{
@@ -60,7 +80,7 @@ public class Resources
{
byte[] image = new byte[100000];
- String path = Resources.getString(imageID.getId());
+ String path = IMAGE_RESOURCE_BUNDLE.getString(imageID.getId());
try
{
Resources.class.getClassLoader()
@@ -96,5 +116,4 @@ public class Resources
return id;
}
}
-
}