From f11b95ad87e7bc39ea732dd407a6c932f9236a18 Mon Sep 17 00:00:00 2001 From: Andrew Su Date: Wed, 20 Apr 2011 15:02:56 -0400 Subject: Update itw-setting's cache viewer to display new directory structure --- .../sourceforge/jnlp/controlpanel/CachePane.java | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'netx/net/sourceforge/jnlp/controlpanel/CachePane.java') diff --git a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java index 950dc36..91849c4 100644 --- a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java +++ b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java @@ -235,16 +235,18 @@ public class CachePane extends JPanel { CacheDirectory.getDirStructure(root); ArrayList data = new ArrayList(); - 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); + } } } } -- cgit v1.2.3