Skip to content

Commit

Permalink
Merge pull request #389 from jburel/issue_380
Browse files Browse the repository at this point in the history
Pass the node and not the Data object
  • Loading branch information
jburel authored Aug 17, 2023
2 parents 7e07e35 + 140f2b0 commit 919d9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public void load()
smartFolders = new
HashMap<SecurityContext, TreeImageSet>();
smartFolders.put(ctx, (TreeImageSet) ob);
} else nl.add(ob);
} else nl.add(((TreeImageSet) ob).getUserObject());
}
m.put(ctx, nl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void visit(TreeImageSet node)
&& node.isExpanded()) {
parent = node.getParentDisplay();
if (parent.isExpanded())
foundNodes.add(userObject);
foundNodes.add(node);
if (!(parent.getUserObject() instanceof ProjectData)) {
long id = ((DataObject) userObject).getId();
List<Long> l = expandedTopNodes.get(DatasetData.class);
Expand All @@ -123,7 +123,7 @@ public void visit(TreeImageSet node)
String ns = tag.getNameSpace();
if (parent.isExpanded() &&
!TagAnnotationData.INSIGHT_TAGSET_NS.equals(ns))
foundNodes.add(userObject);
foundNodes.add(node);
if (!(parent.getUserObject() instanceof TagAnnotationData)) {
long id = ((DataObject) userObject).getId();
List<Long> l = expandedTopNodes.get(TagAnnotationData.class);
Expand Down

0 comments on commit 919d9af

Please sign in to comment.