19 package org.sleuthkit.autopsy.datamodel;
21 import java.beans.PropertyChangeEvent;
22 import java.beans.PropertyChangeListener;
23 import java.util.ArrayList;
24 import java.util.Collections;
25 import java.util.List;
26 import org.openide.nodes.Sheet;
27 import org.openide.util.NbBundle;
28 import org.openide.util.lookup.Lookups;
56 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/image.png");
76 List<Content> currentKeys;
80 this.currentKeys =
new ArrayList<>();
83 private final PropertyChangeListener
pcl =
new PropertyChangeListener() {
85 public void propertyChange(PropertyChangeEvent evt) {
86 String eventType = evt.getPropertyName();
103 setKeys(Collections.<Content>emptySet());
109 setKeys(currentKeys);
110 }
catch (TskCoreException | IllegalStateException ex) {
111 logger.severe(
"Error getting data sources: " + ex.getMessage());
112 setKeys(Collections.<Content>emptySet());
120 for (Content key : currentKeys) {
133 return v.
visit(
this);
138 Sheet s = super.createSheet();
139 Sheet.Set ss = s.get(Sheet.PROPERTIES);
141 ss = Sheet.createPropertiesSet();
145 ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"DataSourcesNode.createSheet.name.name"),
146 NbBundle.getMessage(
this.getClass(),
"DataSourcesNode.createSheet.name.displayName"),
147 NbBundle.getMessage(
this.getClass(),
"DataSourcesNode.createSheet.name.desc"),
List< Content > getDataSources()
DataSourcesNode(List< Content > images)
static void removePropertyChangeListener(PropertyChangeListener listener)
T visit(DataSourcesNode in)
final PropertyChangeListener pcl
static final Logger logger
void refreshContentKeys()
static void addPropertyChangeListener(PropertyChangeListener listener)
static Case getCurrentCase()
synchronized static Logger getLogger(String name)
DataSourcesNodeChildren()