summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Conway <mikeconway@dhcp152-54-6-70.wireless.europa.renci.org>2011-07-01 17:01:14 (GMT)
committer Mike Conway <mikeconway@dhcp152-54-6-70.wireless.europa.renci.org>2011-07-01 17:01:14 (GMT)
commit4f60dcfc5ffe1438586bf9813777e3e0fa1923ea (patch)
treebd2396fc1324d520628dc9f2ff5fc503af072112
parentd9076094a65f003533ab9f9ecfae998c7a5e0e4d (diff)
downloadQCG-Data-4f60dcfc5ffe1438586bf9813777e3e0fa1923ea.zip
QCG-Data-4f60dcfc5ffe1438586bf9813777e3e0fa1923ea.tar.gz
QCG-Data-4f60dcfc5ffe1438586bf9813777e3e0fa1923ea.tar.bz2
convert treetable node row to model row for info select
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IRODSOutlineModel.java5
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IrodsSelectionListenerForBuildingInfoPanel.java5
2 files changed, 8 insertions, 2 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IRODSOutlineModel.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IRODSOutlineModel.java
index ca9e899..8fc829a 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IRODSOutlineModel.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IRODSOutlineModel.java
@@ -50,6 +50,7 @@ public class IRODSOutlineModel extends DefaultOutlineModel {
}
public void notifyFileShouldBeRemoved(final IRODSNode deletedNode) throws IdropException {
+
if (deletedNode == null) {
return;
}
@@ -83,8 +84,8 @@ public class IRODSOutlineModel extends DefaultOutlineModel {
//parent.forceReloadOfChildrenOfThisNode();
- treeModel.nodeChanged(deletedNode);
- treeModel.nodeChanged(parent);
+ //treeModel.nodeChanged(deletedNode);
+ //treeModel.nodeChanged(parent);
//treeModel.nodeChanged(parent);
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IrodsSelectionListenerForBuildingInfoPanel.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IrodsSelectionListenerForBuildingInfoPanel.java
index c7689b1..a2584af 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IrodsSelectionListenerForBuildingInfoPanel.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/viscomponents/IrodsSelectionListenerForBuildingInfoPanel.java
@@ -89,6 +89,10 @@ public class IrodsSelectionListenerForBuildingInfoPanel implements ListSelection
if (!idrop.getToggleIrodsDetails().isSelected()) {
return;
}
+
+ if (irodsNode == null) {
+ return;
+ }
if (irodsNode.isLeaf()) {
log.info("selected node is a leaf, get a data object");
@@ -157,6 +161,7 @@ public class IrodsSelectionListenerForBuildingInfoPanel implements ListSelection
}
ListSelectionModel selectionModel = idrop.getIrodsTree().getSelectionModel();
int idx = selectionModel.getAnchorSelectionIndex();
+ idx = idrop.getIrodsTree().convertRowIndexToModel(idx);
// use first selection for info
// int idx = lse.getLastIndex();