diff options
author | Denis Lila <[email protected]> | 2011-03-15 11:11:07 -0400 |
---|---|---|
committer | Denis Lila <[email protected]> | 2011-03-15 11:11:07 -0400 |
commit | e3baa1c7d05508cb1b9e522f0157a0cf62491b42 (patch) | |
tree | 54fb6340fd61a22d469207668c3d1f80edec3355 /netx/net/sourceforge/jnlp/controlpanel/CachePane.java | |
parent | 20e7ad77b70507d5f53ef945147751a7e41e86fe (diff) |
Handling error code returning functions.
Diffstat (limited to 'netx/net/sourceforge/jnlp/controlpanel/CachePane.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/controlpanel/CachePane.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java index b9c9cff..4c97897 100644 --- a/netx/net/sourceforge/jnlp/controlpanel/CachePane.java +++ b/netx/net/sourceforge/jnlp/controlpanel/CachePane.java @@ -43,6 +43,7 @@ import net.sourceforge.jnlp.cache.CacheDirectory; import net.sourceforge.jnlp.cache.DirectoryNode; import net.sourceforge.jnlp.config.DeploymentConfiguration; import net.sourceforge.jnlp.runtime.Translator; +import net.sourceforge.jnlp.util.FileUtils; public class CachePane extends JPanel { @@ -132,7 +133,7 @@ public class CachePane extends JPanel { DirectoryNode fileNode = ((DirectoryNode) cacheTable.getModel().getValueAt(modelRow, 0)); if (fileNode.getFile().delete()) { fileNode.getParent().removeChild(fileNode); - fileNode.getInfoFile().delete(); + FileUtils.deleteWithErrMesg(fileNode.getInfoFile()); ((DefaultTableModel) cacheTable.getModel()).removeRow(modelRow); cacheTable.getSelectionModel().setSelectionInterval(row, row); CacheDirectory.cleanParent(fileNode); |