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;
33 import org.
sleuthkit.datamodel.TskData.TSK_FS_NAME_FLAG_ENUM;
42 public static final String
DOTDIR = NbBundle.getMessage(
DirectoryNode.class,
"DirectoryNode.curFolder.text");
51 super(dir, directoryBrowseMode);
58 if (dir.isDirNameFlagSet(TSK_FS_NAME_FLAG_ENUM.UNALLOC)) {
59 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/folder-icon-deleted.png");
61 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png");
74 List<Action> actions =
new ArrayList<>();
75 for (Action a : super.getActions(
true)) {
80 NbBundle.getMessage(
this.getClass(),
"DirectoryNode.getActions.viewFileInDir.text"),
this));
83 actions.add(
new NewWindowViewAction(NbBundle.getMessage(
this.getClass(),
"DirectoryNode.viewInNewWin.text"),
this));
90 return actions.toArray(
new Action[actions.size()]);
94 public <T> T accept(ContentNodeVisitor<T> v) {
99 public <T> T accept(DisplayableItemNodeVisitor<T> v) {
100 return v.visit(
this);
DirectoryNode(Directory dir)
static final String DOTDIR
static final String DOTDOTDIR
DirectoryNode(AbstractFile dir, boolean directoryBrowseMode)
void setIcon(AbstractFile dir)
Action[] getActions(boolean popup)
boolean directoryBrowseMode
static ViewFileInTimelineAction createViewFileAction(AbstractFile file)
static synchronized AddContentTagAction getInstance()
boolean getDirectoryBrowseMode()