summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@simon.local>2011-08-17 13:54:36 (GMT)
committer LISA STILLWELL <lisa@simon.local>2011-08-17 13:54:36 (GMT)
commitce5974ec32f4b716270e277b068a385905141d38 (patch)
tree9843712ba7d6990946dda9ad8a12cf546725cda5 /idrop-lite
parentce92e4f7241479dac92de4b45c6d68a6cc2b5bb3 (diff)
downloadQCG-Data-ce5974ec32f4b716270e277b068a385905141d38.zip
QCG-Data-ce5974ec32f4b716270e277b068a385905141d38.tar.gz
QCG-Data-ce5974ec32f4b716270e277b068a385905141d38.tar.bz2
[#427] Add Local Tree to main mode and add functionality for Upload mode
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSFileSystemModel.java33
1 files changed, 18 insertions, 15 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSFileSystemModel.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSFileSystemModel.java
index e31ff3a..c671d0f 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSFileSystemModel.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/IRODSFileSystemModel.java
@@ -22,61 +22,63 @@ import org.slf4j.LoggerFactory;
*/
public class IRODSFileSystemModel extends DefaultTreeModel {
- @Override
- public void removeNodeFromParent(MutableTreeNode mtn) {
+ @Override
+ public void removeNodeFromParent(final MutableTreeNode mtn) {
super.removeNodeFromParent(mtn);
}
-
public static org.slf4j.Logger log = LoggerFactory.getLogger(IRODSFileSystemModel.class);
- private static class TreeModelListener implements javax.swing.event.TreeModelListener {
+ private static class TreeModelListener implements
+ javax.swing.event.TreeModelListener {
public TreeModelListener() {
}
@Override
- public void treeNodesChanged(TreeModelEvent tme) {
+ public void treeNodesChanged(final TreeModelEvent tme) {
}
@Override
- public void treeNodesInserted(TreeModelEvent tme) {
+ public void treeNodesInserted(final TreeModelEvent tme) {
}
@Override
- public void treeNodesRemoved(TreeModelEvent tme) {
+ public void treeNodesRemoved(final TreeModelEvent tme) {
}
@Override
- public void treeStructureChanged(TreeModelEvent tme) {
+ public void treeStructureChanged(final TreeModelEvent tme) {
}
}
@Override
- public Object getChild(Object parent, int index) {
+ public Object getChild(final Object parent, final int index) {
triggerLazyLoading(parent);
return super.getChild(parent, index);
}
@Override
- public int getChildCount(Object parent) {
+ public int getChildCount(final Object parent) {
triggerLazyLoading(parent);
return super.getChildCount(parent);
}
- private void triggerLazyLoading(Object parent) throws IdropRuntimeException {
+ private void triggerLazyLoading(final Object parent)
+ throws IdropRuntimeException {
// make sure children are loaded before counting
IRODSNode parentAsNode = (IRODSNode) parent;
try {
parentAsNode.lazyLoadOfChildrenOfThisNode();
} catch (IdropException ex) {
- Logger.getLogger(IRODSFileSystemModel.class.getName()).log(Level.SEVERE, null, ex);
+ Logger.getLogger(IRODSFileSystemModel.class.getName()).log(
+ Level.SEVERE, null, ex);
throw new IdropRuntimeException(ex);
}
}
-
private final IRODSAccount irodsAccount;
- public IRODSFileSystemModel(final IRODSNode rootNode, final IRODSAccount irodsAccount) throws IdropException {
+ public IRODSFileSystemModel(final IRODSNode rootNode,
+ final IRODSAccount irodsAccount) throws IdropException {
super(rootNode);
if (irodsAccount == null) {
@@ -92,7 +94,8 @@ public class IRODSFileSystemModel extends DefaultTreeModel {
}
- public IRODSFileSystemModel(final IRODSAccount irodsAccount) throws IdropException {
+ public IRODSFileSystemModel(final IRODSAccount irodsAccount)
+ throws IdropException {
super(null);
if (irodsAccount == null) {
throw new IdropRuntimeException("null irodsAccount");