19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.Action;
25 import org.openide.util.NbBundle;
64 List<Action> actions =
new ArrayList<>();
65 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
75 if (isArtifactSource) {
83 List<Action> actions =
new ArrayList<>();
84 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
93 if (isArtifactSource) {
101 List<Action> actions =
new ArrayList<>();
102 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), directory));
111 if (isArtifactSource) {
119 List<Action> actions =
new ArrayList<>();
120 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), directory));
129 if (isArtifactSource) {
137 List<Action> actions =
new ArrayList<>();
138 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
147 if (isArtifactSource) {
155 List<Action> actions =
new ArrayList<>();
156 actions.add(
new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
165 if (isArtifactSource) {
173 if (content instanceof
File) {
174 return getActions((File)content, isArtifactSource);
177 return getActions((LayoutFile)content, isArtifactSource);
180 return getActions((Directory)content, isArtifactSource);
183 return getActions((VirtualDirectory)content, isArtifactSource);
186 return getActions((LocalFile)content, isArtifactSource);
189 return getActions((DerivedFile)content, isArtifactSource);
192 return new ArrayList<>();
static final String OPEN_IN_EXTERNAL_VIEWER
static List< Action > getActions(LayoutFile file, boolean isArtifactSource)
static final String VIEW_FILE_IN_DIR
static List< Action > getActions(File file, boolean isArtifactSource)
static synchronized AddBlackboardArtifactTagAction getInstance()
static List< Action > getActions(Content content, boolean isArtifactSource)
static final String VIEW_IN_NEW_WINDOW
static List< Action > getActions(LocalFile file, boolean isArtifactSource)
static final String VIEW_SOURCE_FILE_IN_DIR
static final String SEARCH_FOR_FILES_SAME_MD5
static List< Action > getActions(DerivedFile file, boolean isArtifactSource)
static List< Action > getActions(Directory directory, boolean isArtifactSource)
static synchronized AddContentTagAction getInstance()
static List< Action > getActions(VirtualDirectory directory, boolean isArtifactSource)