/hg/icedtea-web: Update itw-setting's cache viewer to display ne...
asu at icedtea.classpath.org
asu at icedtea.classpath.org
Wed Apr 20 12:01:23 PDT 2011
changeset ad820e40fe56 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=ad820e40fe56
author: Andrew Su <asu at redhat.com>
date: Wed Apr 20 15:02:56 2011 -0400
Update itw-setting's cache viewer to display new directory structure
diffstat:
ChangeLog | 5 ++++
netx/net/sourceforge/jnlp/controlpanel/CachePane.java | 22 ++++++++++--------
2 files changed, 17 insertions(+), 10 deletions(-)
diffs (44 lines):
diff -r f0cccaba8060 -r ad820e40fe56 ChangeLog
--- a/ChangeLog Wed Apr 20 14:35:13 2011 -0400
+++ b/ChangeLog Wed Apr 20 15:02:56 2011 -0400
@@ -1,3 +1,8 @@
+2011-04-20 Andrew Su <asu at redhat.com>
+
+ * netx/net/sourceforge/jnlp/controlpanel/CachePane.java:
+ (generateData): Skip through the identifier for cached item.
+
2011-04-20 Andrew Su <asu at redhat.com>
* netx/net/sourceforge/jnlp/controlpanel/CachePane.java:
diff -r f0cccaba8060 -r ad820e40fe56 netx/net/sourceforge/jnlp/controlpanel/CachePane.java
--- a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java Wed Apr 20 14:35:13 2011 -0400
+++ b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java Wed Apr 20 15:02:56 2011 -0400
@@ -235,16 +235,18 @@
CacheDirectory.getDirStructure(root);
ArrayList<Object[]> data = new ArrayList<Object[]>();
- for (DirectoryNode type : root.getChildren()) {
- for (DirectoryNode domain : type.getChildren()) {
- for (DirectoryNode leaf : CacheDirectory.getLeafData(domain)) {
- Object[] o = { leaf,
- leaf.getFile().getAbsolutePath(),
- type,
- domain,
- leaf.getFile().length(),
- new SimpleDateFormat("MM/dd/yyyy").format(leaf.getFile().lastModified()) };
- data.add(o);
+ for (DirectoryNode identifier : root.getChildren()) {
+ for (DirectoryNode type : identifier.getChildren()) {
+ for (DirectoryNode domain : type.getChildren()) {
+ for (DirectoryNode leaf : CacheDirectory.getLeafData(domain)) {
+ Object[] o = { leaf,
+ leaf.getFile().getAbsolutePath(),
+ type,
+ domain,
+ leaf.getFile().length(),
+ new SimpleDateFormat("MM/dd/yyyy").format(leaf.getFile().lastModified()) };
+ data.add(o);
+ }
}
}
}
More information about the distro-pkg-dev
mailing list