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 javax.swing.RootPaneContainer;
30 import org.openide.DialogDisplayer;
31 import org.openide.WizardDescriptor;
32 import org.openide.util.NbBundle.Messages;
33 import org.openide.windows.WindowManager;
46 @Messages(
"RunIngestModulesAction.name=Run Ingest Modules")
61 List<String> warnings = ingestJobSettings.getWarnings();
62 if (warnings.isEmpty() ==
false) {
63 StringBuilder warningMessage =
new StringBuilder(1024);
64 for (String warning : warnings) {
65 warningMessage.append(warning).append(
"\n");
67 JOptionPane.showMessageDialog(null, warningMessage.toString());
80 this.putValue(Action.NAME, Bundle.RunIngestModulesAction_name());
81 this.dataSources.addAll(dataSources);
92 this.putValue(Action.NAME, Bundle.RunIngestModulesAction_name());
93 this.dataSources.add(dir);
109 RootPaneContainer root = (RootPaneContainer) WindowManager.getDefault().getMainWindow();
110 root.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
111 root.getGlassPane().setVisible(
true);
113 WizardDescriptor wiz =
new WizardDescriptor(wizard);
114 wiz.setTitleFormat(
new MessageFormat(
"{0}"));
115 wiz.setTitle(Bundle.RunIngestModulesAction_name());
116 root.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
117 root.getGlassPane().setVisible(
false);
118 if (DialogDisplayer.getDefault().notify(wiz) == WizardDescriptor.FINISH_OPTION) {
126 public Object
clone() throws CloneNotSupportedException {
127 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