mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-30 06:19:52 +00:00
Fix hide known file in data source tree, fixing cast exception
This commit is contained in:
@@ -59,7 +59,7 @@ public class DataSourcesNode extends DisplayableItemNode {
|
||||
/*
|
||||
* Custom Keys implementation that listens for new data sources being added.
|
||||
*/
|
||||
private static class DataSourcesNodeChildren extends AbstractContentChildren<Content> {
|
||||
public static class DataSourcesNodeChildren extends AbstractContentChildren<Content> {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(DataSourcesNodeChildren.class.getName());
|
||||
|
||||
@@ -106,9 +106,6 @@ public class DataSourcesNode extends DisplayableItemNode {
|
||||
/**
|
||||
* Refresh all content keys This creates new nodes of keys have changed.
|
||||
*/
|
||||
// I think this goes away once we get more listeners in place
|
||||
// It was added as an interim stage
|
||||
@Deprecated
|
||||
public void refreshContentKeys() {
|
||||
for (Content key : currentKeys) {
|
||||
refreshKey(key);
|
||||
|
||||
@@ -769,7 +769,7 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
||||
|
||||
Node imagesNode = imagesNodeOrig.getNode();
|
||||
|
||||
RootContentChildren contentRootChildren = (RootContentChildren) imagesNode.getChildren();
|
||||
DataSourcesNode.DataSourcesNodeChildren contentRootChildren = (DataSourcesNode.DataSourcesNodeChildren) imagesNode.getChildren();
|
||||
contentRootChildren.refreshContentKeys();
|
||||
|
||||
//final TreeView tree = getTree();
|
||||
|
||||
Reference in New Issue
Block a user