19package org.sleuthkit.autopsy.centralrepository.contentviewer;
21import java.awt.Component;
22import java.awt.Cursor;
23import java.util.concurrent.ExecutionException;
24import java.util.logging.Level;
25import org.sleuthkit.autopsy.coreutils.Logger;
26import javax.swing.JPanel;
27import org.apache.commons.lang.StringUtils;
28import org.openide.nodes.Node;
29import org.openide.util.NbBundle.Messages;
30import org.openide.util.lookup.ServiceProvider;
31import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
32import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository;
33import org.sleuthkit.autopsy.contentviewers.utils.ViewerPriority;
34import org.sleuthkit.autopsy.datamodel.BlackboardArtifactItem;
35import org.sleuthkit.datamodel.AbstractFile;
36import org.sleuthkit.datamodel.BlackboardArtifactTag;
37import org.sleuthkit.datamodel.OsAccount;
42@SuppressWarnings(
"PMD.SingularField")
44@Messages({
"DataContentViewerOtherCases.title=Other Occurrences",
45 "DataContentViewerOtherCases.toolTip=Displays instances of the selected file/artifact from other occurrences."})
52 private OtherOccurrencesNodeWorker
worker =
null;
64 return Bundle.DataContentViewerOtherCases_title();
69 return Bundle.DataContentViewerOtherCases_toolTip();
102 if (node.getLookup().lookup(OsAccount.class) !=
null) {
110 if (node.getLookup().lookup(BlackboardArtifactTag.class) !=
null) {
114 AbstractFile file = node.getLookup().lookup(AbstractFile.class);
116 if (file !=
null && !StringUtils.isBlank(file.getMd5Hash())) {
137 worker =
new OtherOccurrencesNodeWorker(node) {
141 if (!isCancelled()) {
142 OtherOccurrencesData data =
get();
146 }
catch (InterruptedException | ExecutionException ex) {
160 @SuppressWarnings(
"unchecked")
163 java.awt.GridBagConstraints gridBagConstraints;
165 setMinimumSize(
new java.awt.Dimension(1000, 10));
167 setPreferredSize(
new java.awt.Dimension(1000, 63));
168 setLayout(
new java.awt.BorderLayout());
final OtherOccurrencesPanel otherOccurrencesPanel
static final Logger logger
DataContentViewerOtherCases()
static final long serialVersionUID
DataContentViewer createInstance()
OtherOccurrencesNodeWorker worker
boolean isSupported(Node node)
int isPreferred(Node node)
synchronized static Logger getLogger(String name)
static boolean isEnabled()