19 package org.sleuthkit.autopsy.ingest.runIngestModuleWizard;
21 import java.awt.Cursor;
22 import java.awt.event.ActionEvent;
23 import java.text.MessageFormat;
24 import java.util.ArrayList;
25 import java.util.List;
26 import javax.swing.AbstractAction;
27 import javax.swing.Action;
28 import javax.swing.JOptionPane;
29 import org.openide.DialogDisplayer;
30 import org.openide.WizardDescriptor;
31 import org.openide.util.NbBundle.Messages;
32 import org.openide.windows.WindowManager;
45 @Messages(
"RunIngestModulesAction.name=Run Ingest Modules")
59 List<String> warnings = ingestJobSettings.getWarnings();
60 if (warnings.isEmpty() ==
false) {
61 StringBuilder warningMessage =
new StringBuilder(1024);
62 for (String warning : warnings) {
63 warningMessage.append(warning).append(
"\n");
65 JOptionPane.showMessageDialog(null, warningMessage.toString());
78 this.putValue(Action.NAME, Bundle.RunIngestModulesAction_name());
79 this.dataSources.addAll(dataSources);
90 this.putValue(Action.NAME, Bundle.RunIngestModulesAction_name());
91 this.dataSources.add(dir);
107 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
109 WizardDescriptor wiz =
new WizardDescriptor(wizard);
110 wiz.setTitleFormat(
new MessageFormat(
"{0}"));
111 wiz.setTitle(Bundle.RunIngestModulesAction_name());
112 WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
113 if (DialogDisplayer.getDefault().notify(wiz) == WizardDescriptor.FINISH_OPTION) {
122 public Object
clone() throws CloneNotSupportedException {
123 throw new CloneNotSupportedException(
"Clone is not supported for the RunIngestModulesAction");
final IngestJobSettings.IngestType ingestType
static synchronized IngestManager getInstance()
final List< Content > dataSources
RunIngestModulesAction(Directory dir)
RunIngestModulesAction(List< Content > dataSources)
static final long serialVersionUID
static void showWarnings(IngestJobSettings ingestJobSettings)
void queueIngestJob(Collection< Content > dataSources, IngestJobSettings settings)
void actionPerformed(ActionEvent e)
static final String EXECUTION_CONTEXT