aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/services
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2010-10-25 14:37:57 -0400
committerOmair Majid <[email protected]>2010-10-25 14:37:57 -0400
commitb90561954383ec01d0472b44b34ca6c5de344018 (patch)
treec7941d51c0fcbfee0db7b182d6649f26768f55b9 /netx/net/sourceforge/jnlp/services
parent0c488b272fa6deb608f32d4d8b3f7b662f3988c6 (diff)
remove duplicate R methods; create a single class to handle translation
2010-10-25 Omair Majid <[email protected]> * net/sourceforge/jnlp/ExtensionDesc.java: Import Translator.R and use that. * net/sourceforge/jnlp/JNLPFile.java: Import Translator.R. (R): Remove. * net/sourceforge/jnlp/JREDesc.java: Import Translator.R. (checkHeapSize): Use R instead of JNLPRuntime.getMessage. * net/sourceforge/jnlp/Launcher.java: Import Translator.R. (R): Remove. * net/sourceforge/jnlp/Parser.java: Import Translator.R (R(String)): Remove. (R(String,Object)): Remove. (R(String,Object,Object)): Remove. (R(String,Object,Object,Object)): Remove. * net/sourceforge/jnlp/cache/CacheEntry.java: Import Translator.R (CacheEntry): Use R instead of JNLPRuntime.getMessage. * net/sourceforge/jnlp/cache/CacheUtil.java: Import Translator.R (R(String)): Remove. (R(String,Object)): Remove. * net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java: Import Translator.R and use that instead of JNLPRuntime.getMessage. * net/sourceforge/jnlp/runtime/Boot.java: Import Translator.R. (R(String)): Remove. (R(String, Object)): Remove. (run): Use R instead of JNLPRuntime.getMessage. * net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Import Translator.R. (R): Remove. * net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: Import Translator.R. Use it instead of JNLPRuntime.getMeesage. (R): Remove. * net/sourceforge/jnlp/security/AccessWarningPane.java: Import Translator.R. * net/sourceforge/jnlp/security/CertWarningPane.java: Likewise. * net/sourceforge/jnlp/security/HttpsCertVerifier.java: Import Translator.R. (R(String)): Remove. (R(String,String,String)): Remove. * net/sourceforge/jnlp/security/MoreInfoPane.java: Import Translator.R. * net/sourceforge/jnlp/security/SecurityDialogPanel.java (R(String)): Remove. (R(String,Object)): Remove. * net/sourceforge/jnlp/services/ServiceUtil.java (R): Remove. * net/sourceforge/jnlp/services/SingleInstanceLock.java: Import Translator.R (R(String)): Remove. (R(String,Object)): Remove. * net/sourceforge/jnlp/tools/JarSigner.java: Import Translator.R. (R): Remove. * net/sourceforge/jnlp/runtime/Translator.java: New file (R(String,Object...)): New method.
Diffstat (limited to 'netx/net/sourceforge/jnlp/services')
-rw-r--r--netx/net/sourceforge/jnlp/services/ServiceUtil.java4
-rw-r--r--netx/net/sourceforge/jnlp/services/SingleInstanceLock.java10
2 files changed, 2 insertions, 12 deletions
diff --git a/netx/net/sourceforge/jnlp/services/ServiceUtil.java b/netx/net/sourceforge/jnlp/services/ServiceUtil.java
index bb41f1b..6116332 100644
--- a/netx/net/sourceforge/jnlp/services/ServiceUtil.java
+++ b/netx/net/sourceforge/jnlp/services/ServiceUtil.java
@@ -53,10 +53,6 @@ import net.sourceforge.jnlp.security.SecurityWarning.AccessType;
*/
public class ServiceUtil {
- private static String R(String key) {
- return JNLPRuntime.getMessage(key);
- }
-
/**
* Returns the BasicService reference, or null if the service is
* unavailable.
diff --git a/netx/net/sourceforge/jnlp/services/SingleInstanceLock.java b/netx/net/sourceforge/jnlp/services/SingleInstanceLock.java
index 5108642..811b80d 100644
--- a/netx/net/sourceforge/jnlp/services/SingleInstanceLock.java
+++ b/netx/net/sourceforge/jnlp/services/SingleInstanceLock.java
@@ -16,6 +16,8 @@
package net.sourceforge.jnlp.services;
+import static net.sourceforge.jnlp.runtime.Translator.R;
+
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
@@ -183,12 +185,4 @@ class SingleInstanceLock {
return (display == null) ? "" : display;
}
- private static String R(String key) {
- return JNLPRuntime.getMessage(key);
- }
-
- private static String R(String key, Object param) {
- return JNLPRuntime.getMessage(key, new Object[] { param });
- }
-
}