19package org.sleuthkit.autopsy.report.infrastructure;
21import java.awt.event.ActionEvent;
22import java.awt.event.ActionListener;
24import java.util.logging.Level;
25import javax.swing.JButton;
26import javax.swing.event.ChangeListener;
27import org.openide.WizardDescriptor;
28import org.openide.util.HelpCtx;
29import org.openide.util.NbBundle;
30import org.openide.util.NbPreferences;
31import org.sleuthkit.autopsy.casemodule.Case;
32import org.sleuthkit.autopsy.guiutils.CheckBoxListPanel;
33import org.sleuthkit.autopsy.coreutils.Logger;
34import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
35import org.sleuthkit.datamodel.Content;
36import org.sleuthkit.datamodel.TskCoreException;
47 private WizardDescriptor
wiz;
53 "ReportWizardDataSourceSelectionPanel.nextButton.text=Next",
54 "ReportWizardDataSourceSelectionPanel.finishButton.text=Finish"
57 nextButton =
new JButton(Bundle.ReportWizardDataSourceSelectionPanel_nextButton_text());
58 finishButton =
new JButton(Bundle.ReportWizardDataSourceSelectionPanel_finishButton_text());
67 "ReportWizardDataSourceSelectionPanel.confirmEmptySelection=Are you sure you want to proceed with no selections?"
70 return (ActionEvent e) -> {
80 return (ActionEvent e) -> {
90 "ReportWizardDataSourceSelectionPanel.title=Select which data source(s) to include"
99 for (Content dataSource : dataSources) {
100 String dataSourceName = dataSource.getName();
101 long dataSourceId = dataSource.getId();
104 }
catch (TskCoreException ex) {
105 logger.log(Level.SEVERE,
"Unable to get list of data sources from the case", ex);
113 return HelpCtx.DEFAULT_HELP;
119 wiz.setOptions(
new Object[]{WizardDescriptor.PREVIOUS_OPTION,
nextButton,
finishButton, WizardDescriptor.CANCEL_OPTION});
121 boolean generalModule = NbPreferences.forModule(ReportWizardPanel1.class).getBoolean(
"generalModule",
true);
128 List<Long> selectedDataSources =
getComponent().getSelectedElements();
129 data.putProperty(
"dataSourceSelections", selectedDataSources);
List< Content > getDataSources()
static Case getCurrentCase()
synchronized static Logger getLogger(String name)
static boolean confirm(String message)
void addChangeListener(ChangeListener cl)
void removeChangeListener(ChangeListener cl)
static final Logger logger
CheckBoxListPanel< Long > dataSourcesSelectionPanel
ActionListener createNextButtonActionListener()
void readSettings(WizardDescriptor data)
ReportWizardDataSourceSelectionPanel()
ActionListener createFinishButtonActionListener()
CheckBoxListPanel< Long > getComponent()
final JButton finishButton
void storeSettings(WizardDescriptor data)