diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java index bcec5bc150082051aac4a45e68e080c65610f02f..2f3417721d5b60a4a26411b819868e0ceaa1eff9 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java @@ -33,7 +33,6 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import javax.swing.JOptionPane; import javax.swing.SwingUtilities; import javax.swing.SwingWorker; import org.netbeans.api.progress.ProgressHandle; @@ -692,13 +691,10 @@ protected void done() { stats.end(); progress.finish(); - logger.log(Level.INFO, "Summary Report: " + stats.toString()); - //postMessage(IngestMessage.createManagerMessage(stats.toHtmlString())); - JOptionPane.showMessageDialog( - null, - stats.toHtmlString(), - "Ingest Summary", - JOptionPane.INFORMATION_MESSAGE); + if (! this.isCancelled()) { + logger.log(Level.INFO, "Summary Report: " + stats.toString()); + tc.displayReport(stats.toHtmlString()); + } } } @@ -719,6 +715,9 @@ private void handleInterruption() { //empty queues emptyFsContents(); emptyImages(); + + //reset main progress bar + initMainProgress(0); } } diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessage.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessage.java index de70542432beb8c772fea8381df3925ebc34ff9b..abce9b0fbf64daaba3610063b02579a662fa87cf 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessage.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestMessage.java @@ -20,7 +20,6 @@ import java.text.SimpleDateFormat; import java.util.Date; -import javax.swing.text.DateFormatter; import org.sleuthkit.autopsy.datamodel.KeyValueThing; /** diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.form b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.form index 37b22b9920f7da307000bc90663bf0618838a90a..f09fc077f32c7ceaff2aa184ecadaa3cae995b7a 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.form +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.form @@ -119,38 +119,29 @@ <DimensionLayout dim="0"> <Group type="103" groupAlignment="0" attributes="0"> <Group type="102" attributes="0"> - <EmptySpace max="-2" attributes="0"/> <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <Component id="topLable" min="-2" max="-2" attributes="1"/> - <EmptySpace pref="198" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <Component id="servicesPanel" min="-2" max="-2" attributes="1"/> - <EmptySpace min="-2" pref="115" max="-2" attributes="0"/> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="topLable" alignment="0" min="-2" max="-2" attributes="1"/> + <Component id="servicesPanel" alignment="0" min="-2" max="-2" attributes="1"/> + <Component id="startButton" alignment="0" min="-2" max="-2" attributes="0"/> + <Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0"> + <Component id="mainProgressBar" alignment="0" max="32767" attributes="1"/> + <Component id="freqSlider" alignment="0" max="32767" attributes="1"/> + </Group> + </Group> </Group> <Group type="102" alignment="0" attributes="0"> - <Component id="startButton" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="258" max="32767" attributes="0"/> + <EmptySpace min="-2" pref="59" max="-2" attributes="0"/> + <Component id="refreshFrequencyLabel" min="-2" max="-2" attributes="0"/> </Group> <Group type="102" alignment="0" attributes="0"> - <Group type="103" groupAlignment="1" max="-2" attributes="0"> - <Component id="mainProgressBar" alignment="0" max="32767" attributes="1"/> - <Component id="freqSlider" alignment="0" max="32767" attributes="1"/> - </Group> - <EmptySpace pref="115" max="32767" attributes="0"/> + <EmptySpace min="-2" pref="59" max="-2" attributes="0"/> + <Component id="ingestProgressLabel" min="-2" max="-2" attributes="0"/> </Group> </Group> - </Group> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="59" max="-2" attributes="0"/> - <Component id="refreshFrequencyLabel" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="174" max="32767" attributes="0"/> - </Group> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace min="-2" pref="59" max="-2" attributes="0"/> - <Component id="ingestProgressLabel" min="-2" max="-2" attributes="0"/> - <EmptySpace pref="171" max="32767" attributes="0"/> + <EmptySpace pref="115" max="32767" attributes="0"/> </Group> <Group type="103" rootIndex="1" groupAlignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0"> diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.java index 31706dd9cacc7b6d6629acddd9139a3502b6c6ff..0711b33bca82991d873bc797f062757507f88365 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestTopComponent.java @@ -34,6 +34,7 @@ import java.util.logging.Logger; import javax.swing.BoxLayout; import javax.swing.JCheckBox; +import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JSlider; import org.openide.util.NbBundle; @@ -435,8 +436,11 @@ void readProperties(java.util.Properties p) { * Display ingest summary report in some dialog */ void displayReport(String ingestReport) { - //TODO widget - logger.log(Level.INFO, "INGEST REPORT: " + ingestReport); + JOptionPane.showMessageDialog( + null, + ingestReport, + "Ingest Summary", + JOptionPane.INFORMATION_MESSAGE); } /**