19 package org.sleuthkit.autopsy.resultviewers.summary;
21 import java.awt.BorderLayout;
22 import java.awt.Cursor;
23 import java.util.logging.Level;
24 import javax.swing.SwingUtilities;
25 import org.openide.explorer.ExplorerManager;
26 import org.openide.nodes.Node;
27 import org.openide.util.NbBundle.Messages;
28 import org.openide.util.lookup.ServiceProvider;
40 @SuppressWarnings(
"PMD.SingularField")
43 private static final long serialVersionUID = 1L;
65 "DataSourceSummaryResultViewer_title=Summary"
68 this(explorerManager, Bundle.DataSourceSummaryResultViewer_title());
81 super(explorerManager);
93 return getDataSource(node) != null;
104 return node == null ? null : node.getLookup().lookup(DataSource.class);
109 public
void setNode(Node node) {
110 if (!SwingUtilities.isEventDispatchThread()) {
111 LOGGER.log(Level.SEVERE,
"Attempting to run setNode() from non-EDT thread.");
115 DataSource dataSource = getDataSource(node);
117 this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
119 if (summaryPanel != null) {
120 summaryPanel.setDataSource(dataSource);
123 this.setCursor(null);
134 setLayout(
new BorderLayout());
135 add(summaryPanel, BorderLayout.CENTER);
140 summaryPanel.close();
DataSourceSummaryResultViewer()
DataSourceSummaryResultViewer(ExplorerManager explorerManager, String title)
DataSourceSummaryResultViewer(ExplorerManager explorerManager)
DataResultViewer createInstance()
synchronized static Logger getLogger(String name)
DataSourceSummaryTabbedPane summaryPanel
boolean isSupported(Node node)
DataSource getDataSource(Node node)