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;
32 @ServiceProvider(service = DataContentViewer.class, position = 2)
36 private volatile Node currentNode = null;
56 currentNode = selectedNode;
61 @Messages({
"TextContentViewer.title=Text"})
64 return Bundle.TextContentViewer_title();
67 @Messages({
"TextContentViewer.tooltip=Displays text associated with the selected item"})
70 return Bundle.TextContentViewer_tooltip();
97 AbstractFile file = node.getLookup().lookup(AbstractFile.class);
98 if (file != null && (file.isDir() || file.getSize() == 0)) {
102 return panel.isSupported(node);
108 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)