19 package org.sleuthkit.autopsy.centralrepository;
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.List;
24 import javax.swing.Action;
25 import org.openide.util.Utilities;
26 import org.openide.util.lookup.ServiceProvider;
36 @ServiceProvider(service = ContextMenuActionsProvider.class)
41 ArrayList<Action> actionsList =
new ArrayList<>();
42 Collection<? extends AbstractFile> selectedFiles = Utilities.actionsGlobalContext().lookupAll(AbstractFile.class);
44 if (selectedFiles.size() != 1) {
48 for (AbstractFile file : selectedFiles) {
52 action.setEnabled(
false);
54 actionsList.add(action);
static boolean isSupportedAbstractFileType(AbstractFile file)
static boolean isEnabled()