/hg/icedtea-web: Minor cache fixes

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Mon Mar 24 15:46:28 UTC 2014


changeset 2d02a075cb1e in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=2d02a075cb1e
author: Jiri Vanek <jvanek at redhat.com>
date: Mon Mar 24 16:46:09 2014 +0100

	Minor cache fixes


diffstat:

 ChangeLog                                               |   7 +++++++
 netx/net/sourceforge/jnlp/controlpanel/CachePane.java   |  11 +++++++----
 netx/net/sourceforge/jnlp/resources/Messages.properties |   6 +++---
 3 files changed, 17 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r 6bdbe6b2694b -r 2d02a075cb1e ChangeLog
--- a/ChangeLog	Mon Mar 24 09:20:18 2014 -0400
+++ b/ChangeLog	Mon Mar 24 16:46:09 2014 +0100
@@ -1,3 +1,10 @@
+2014-03-20  Jiri Vanek  <jvanek at redhat.com>
+
+	* netx/net/sourceforge/jnlp/controlpanel/CachePane.java: (visualCleanCache)
+	consider exception in cache operation as not-scuess.
+	* netx/net/sourceforge/jnlp/resources/Messages.properties: (CCannotClearCache)
+	(CFakedCache) (CVCPCleanCacheTip) improved by fix it tips.
+
 2014-03-24  Andrew Azores  <aazores at redhat.com>
 
 	* NEWS: added mention of Trusted-only manifest attribute
diff -r 6bdbe6b2694b -r 2d02a075cb1e netx/net/sourceforge/jnlp/controlpanel/CachePane.java
--- a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java	Mon Mar 24 09:20:18 2014 -0400
+++ b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java	Mon Mar 24 16:46:09 2014 +0100
@@ -481,12 +481,15 @@
         parent.getContentPane().setCursor(Cursor.getDefaultCursor());
     }
 
-    public static boolean visualCleanCache(Component parent) {
-        boolean success = CacheUtil.clearCache();
-        if (!success) {
+    public static void visualCleanCache(Component parent) {
+        try {
+            boolean success = CacheUtil.clearCache();
+            if (!success) {
+                JOptionPane.showMessageDialog(parent, Translator.R("CCannotClearCache"));
+            }
+        } catch (Exception ex) {
             JOptionPane.showMessageDialog(parent, Translator.R("CCannotClearCache"));
         }
-        return success;
     }
 }
 
diff -r 6bdbe6b2694b -r 2d02a075cb1e netx/net/sourceforge/jnlp/resources/Messages.properties
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties	Mon Mar 24 09:20:18 2014 -0400
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties	Mon Mar 24 16:46:09 2014 +0100
@@ -265,9 +265,9 @@
 CChooseCache=Choose a cache directory...
 CChooseCacheInfo=NetX needs a location for storing cache files.
 CChooseCacheDir=Cache directory
-CCannotClearCache=Can not clear the cache at this time. Try later. If the problem persists, try closing your browser(s) & JNLP applications. At the end you can try to kill all java applications.
+CCannotClearCache=Can not clear the cache at this time. Try later. If the problem persists, try closing your browser(s) & JNLP applications. At the end you can try to kill all java applications. \\\n You can clear cache by javaws -Xclearcache or via itw-settings Cache -> View files -> Clean all
 CFakeCache=Cache is corrupt. Fixing.
-CFakedCache=Cache was corrupt and has been fixed. It is strongly recommended that you run 'javaws -Xclearcache' and rerun your application as soon as possible.
+CFakedCache=Cache was corrupt and has been fixed. It is strongly recommended that you run 'javaws -Xclearcache' and rerun your application as soon as possible. You can also use via itw-settings Cache -> View files -> Clean all
 
 # Security
 SFileReadAccess=The application has requested read access to {0}. Do you want to allow this action?
@@ -683,7 +683,7 @@
 CVCPButRefresh=Refresh
 CVCPButDelete=Delete
 CVCPCleanCache=Clean all cache
-CVCPCleanCacheTip=Some errors may be caused by old files in your cache. Before submitting the bug, you may clear cache and try to run application again. 
+CVCPCleanCacheTip=Some errors may be caused by old files in your cache. Before submitting the bug, you may clear cache and try to run application again. \\\n You can clear cache by javaws -Xclearcache or via itw-settings Cache -> View files -> Clean all
 CVCPColLastModified=Last Modified
 CVCPColSize=Size (Bytes)
 CVCPColDomain=Domain


More information about the distro-pkg-dev mailing list