mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Revert "used non deprecated complete(ReportStatus)"
This reverts commit f18420aa113a25f05d2e73de7d1b085f7f229f55.
This commit is contained in:
parent
dca20e80cd
commit
b1284625d2
@ -63,7 +63,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
||||
setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
|
||||
|
||||
CueBannerPanel welcomeWindow = new CueBannerPanel();
|
||||
CueBannerPanel.refresh();
|
||||
welcomeWindow.refresh();
|
||||
|
||||
// add the command to close the window to the button on the Volume Detail Panel
|
||||
welcomeWindow.setCloseButtonActionListener(new ActionListener() {
|
||||
|
@ -59,7 +59,6 @@ import org.mitre.cybox.objects.DomainName;
|
||||
import org.mitre.cybox.objects.WindowsRegistryKey;
|
||||
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
||||
import org.sleuthkit.autopsy.coreutils.ModuleSettings;
|
||||
import org.sleuthkit.autopsy.report.ReportProgressPanel.ReportStatus;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -121,7 +120,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
"STIXReportModule.notifyMsg.unableToOpenReportFile",
|
||||
reportPath),
|
||||
MessageNotifyUtil.MessageType.ERROR);
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.completedWithErrors"));
|
||||
return;
|
||||
@ -136,7 +135,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
logger.log(Level.SEVERE, "STIXReportModuleConfigPanel.stixFile not initialized "); //NON-NLS
|
||||
MessageNotifyUtil.Message.error(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided"));
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided"));
|
||||
return;
|
||||
@ -145,7 +144,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
logger.log(Level.SEVERE, "No STIX file/directory provided "); //NON-NLS
|
||||
MessageNotifyUtil.Message.error(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided"));
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided"));
|
||||
return;
|
||||
@ -157,7 +156,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
MessageNotifyUtil.Message.error(NbBundle.getMessage(this.getClass(),
|
||||
"STIXReportModule.notifyMsg.unableToOpenFileDir",
|
||||
stixFileName));
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.complete();
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.couldNotOpenFileDir", stixFileName));
|
||||
return;
|
||||
@ -202,12 +201,10 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
|
||||
// Set the progress bar to done. If any errors occurred along the way, modify
|
||||
// the "complete" message to indicate this.
|
||||
progressPanel.complete();
|
||||
if (hadErrors) {
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.completedWithErrors"));
|
||||
} else {
|
||||
progressPanel.complete(ReportStatus.COMPLETE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ import org.sleuthkit.datamodel.TskData;
|
||||
for (FileReportModule module : fileModules) {
|
||||
module.endTable();
|
||||
module.endReport();
|
||||
fileProgress.get(module).complete(ReportStatus.COMPLETE);
|
||||
fileProgress.get(module).complete();
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -463,7 +463,7 @@ import org.sleuthkit.datamodel.TskData;
|
||||
|
||||
// finish progress, wrap up
|
||||
for (TableReportModule module : tableModules) {
|
||||
tableProgress.get(module).complete(ReportStatus.COMPLETE);
|
||||
tableProgress.get(module).complete();
|
||||
module.endReport();
|
||||
}
|
||||
|
||||
|
@ -339,12 +339,12 @@ class ReportKML implements GeneralReportModule {
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.WARNING, "Could not write the KML report.", ex); //NON-NLS
|
||||
}
|
||||
progressPanel.complete(ReportProgressPanel.ReportStatus.ERROR);
|
||||
progressPanel.complete();
|
||||
} catch (TskCoreException ex) {
|
||||
logger.log(Level.WARNING, "Failed to get the unique path.", ex); //NON-NLS
|
||||
}
|
||||
progressPanel.increment();
|
||||
progressPanel.complete(ReportProgressPanel.ReportStatus.COMPLETE);
|
||||
progressPanel.complete();
|
||||
}
|
||||
|
||||
public static void copyFileUsingStream(AbstractFile file, File jFile) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user