mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
update LOCATION type
This commit is contained in:
parent
d61b22acd5
commit
c3f3a9a347
@ -24,7 +24,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import org.sleuthkit.autopsy.datamodel.VolumeNode;
|
||||
import org.sleuthkit.autopsy.datamodel.FileNode;
|
||||
import org.sleuthkit.autopsy.datamodel.DirectoryNode;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@ -34,6 +33,8 @@ import org.openide.explorer.ExplorerManager;
|
||||
import org.openide.nodes.FilterNode;
|
||||
import org.openide.nodes.Node;
|
||||
import org.openide.nodes.Sheet;
|
||||
import org.sleuthkit.autopsy.datamodel.AbstractFsContentNode.FsContentPropertyType;
|
||||
import org.sleuthkit.autopsy.keywordsearch.IndexContentFilesAction;
|
||||
import org.sleuthkit.datamodel.Content;
|
||||
import org.sleuthkit.datamodel.ContentVisitor;
|
||||
import org.sleuthkit.datamodel.Directory;
|
||||
@ -41,6 +42,7 @@ import org.sleuthkit.datamodel.File;
|
||||
import org.sleuthkit.datamodel.Image;
|
||||
import org.sleuthkit.datamodel.Volume;
|
||||
|
||||
|
||||
/**
|
||||
* This class wraps nodes as they are passed to the DataResult viewers. It
|
||||
* defines the actions that the node should have.
|
||||
@ -52,11 +54,12 @@ public class DataResultFilterNode extends FilterNode{
|
||||
|
||||
|
||||
/** the constructor */
|
||||
public DataResultFilterNode(Node arg, ExplorerManager em) {
|
||||
super(arg, new DataResultFilterChildren(arg, em));
|
||||
public DataResultFilterNode(Node node, ExplorerManager em) {
|
||||
super(node, new DataResultFilterChildren(node, em));
|
||||
this.sourceEm = em;
|
||||
getActionsCV = new GetActionsContentVisitor();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Right click action for the nodes that we want to pass to the directory
|
||||
@ -74,6 +77,8 @@ public class DataResultFilterNode extends FilterNode{
|
||||
|
||||
Content nodeContent = this.getOriginal().getLookup().lookup(Content.class);
|
||||
actions.addAll(nodeContent.accept(getActionsCV));
|
||||
|
||||
//actions.add(new IndexContentFilesAction(nodeContent, "Index"));
|
||||
|
||||
return actions.toArray(new Action[actions.size()]);
|
||||
}
|
||||
@ -191,7 +196,7 @@ public class DataResultFilterNode extends FilterNode{
|
||||
newPs.setShortDescription(ps.getShortDescription());
|
||||
|
||||
newPs.put(ps.getProperties());
|
||||
newPs.remove(FileNode.PROPERTY_LOCATION);
|
||||
newPs.remove(FsContentPropertyType.LOCATION.toString() );
|
||||
propertySets[i] = newPs;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user