19 package org.sleuthkit.autopsy.datamodel;
 
   21 import java.util.ArrayList;
 
   22 import java.util.Collection;
 
   23 import java.util.HashSet;
 
   24 import java.util.List;
 
   25 import javax.swing.Action;
 
   26 import org.openide.util.NbBundle;
 
   27 import org.openide.util.Utilities;
 
   38 import org.
sleuthkit.datamodel.TskData.TSK_FS_NAME_FLAG_ENUM;
 
   47     public static final String 
DOTDIR = NbBundle.getMessage(
DirectoryNode.class, 
"DirectoryNode.curFolder.text");
 
   56         super(dir, directoryBrowseMode);
 
   63         if (dir.isDirNameFlagSet(TSK_FS_NAME_FLAG_ENUM.UNALLOC)) {
 
   64             this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/folder-icon-deleted.png"); 
 
   66             this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png"); 
 
   79         List<Action> actionsList = 
new ArrayList<>();
 
   80         for (Action a : super.getActions(
true)) {
 
   85                     NbBundle.getMessage(
this.getClass(), 
"DirectoryNode.getActions.viewFileInDir.text"), 
this));
 
   86             actionsList.add(null); 
 
   88         actionsList.add(
new NewWindowViewAction(NbBundle.getMessage(
this.getClass(), 
"DirectoryNode.viewInNewWin.text"), 
this));
 
   90         actionsList.add(null); 
 
   92         actionsList.add(null); 
 
   94         actionsList.add(null); 
 
   97         final Collection<AbstractFile> selectedFilesList = 
new HashSet<>(Utilities.actionsGlobalContext().lookupAll(AbstractFile.class));
 
   98         if (selectedFilesList.size() == 1) {
 
  103         return actionsList.toArray(
new Action[actionsList.size()]);
 
  107     public <T> T accept(ContentNodeVisitor<T> visitor) {
 
  108         return visitor.visit(
this);
 
  112     public <T> T accept(DisplayableItemNodeVisitor<T> visitor) {
 
  113         return visitor.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 synchronized DeleteFileContentTagAction getInstance()
static ViewFileInTimelineAction createViewFileAction(AbstractFile file)
static synchronized AddContentTagAction getInstance()
boolean getDirectoryBrowseMode()