19 package org.sleuthkit.autopsy.contentviewers.textcontentviewer;
21 import java.awt.Component;
22 import org.openide.nodes.Node;
23 import org.openide.util.NbBundle.Messages;
24 import org.openide.util.lookup.ServiceProvider;
31 @ServiceProvider(service = DataContentViewer.class, position = 2)
35 private volatile Node currentNode = null;
55 currentNode = selectedNode;
60 @Messages({
"TextContentViewer.title=Text"})
63 return Bundle.TextContentViewer_title();
66 @Messages({
"TextContentViewer.tooltip=Displays text associated with the selected item"})
69 return Bundle.TextContentViewer_tooltip();
96 AbstractFile file = node.getLookup().lookup(AbstractFile.class);
97 if (file != null && (file.isDir() || file.getSize() == 0)) {
101 return panel.isSupported(node);
107 return panel.isPreffered(node);
DataContentViewer createInstance()
boolean isSupported(Node node)
void setNode(Node selectedNode)
void setupTabs(Node selectedNode)
void setNode(Node selectedNode)
final TextContentViewerPanel panel
TextContentViewer(boolean isMain)
int isPreferred(Node node)