19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.Action;
24 import org.openide.util.NbBundle;
52 super(file, directoryBrowseMode);
61 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/carved-file-icon-16.png");
63 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/file-icon-deleted.png");
66 this.setIconBaseWithExtension(getIconForFileType(file));
72 List<Action> actionsList =
new ArrayList<>();
73 for (Action a : super.getActions(
true)) {
78 actionsList.add(
new ViewContextAction(NbBundle.getMessage(
this.getClass(),
"SlackFileNode.viewFileInDir.text"), this.content));
79 actionsList.add(null);
82 NbBundle.getMessage(
this.getClass(),
"SlackFileNode.getActions.viewInNewWin.text"),
this));
83 actionsList.add(null);
85 actionsList.add(null);
88 return actionsList.toArray(
new Action[actionsList.size()]);
92 public <T> T accept(ContentNodeVisitor<T> v) {
97 public <T> T accept(DisplayableItemNodeVisitor<T> v) {
103 static String getIconForFileType(AbstractFile file) {
105 return "org/sleuthkit/autopsy/images/file-icon.png";
118 return getClass().getName();
Action[] getActions(boolean popup)
boolean isDirNameFlagSet(TSK_FS_NAME_FLAG_ENUM flag)
void setIcon(AbstractFile file)
TskData.TSK_DB_FILES_TYPE_ENUM getType()
SlackFileNode(AbstractFile file, boolean directoryBrowseMode)
boolean directoryBrowseMode
SlackFileNode(AbstractFile file)
static synchronized AddContentTagAction getInstance()
boolean getDirectoryBrowseMode()