mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
minor changes related to add image wizard error handling
This commit is contained in:
parent
13cc11a2f4
commit
4dbbe5973b
@ -517,14 +517,15 @@ class AddImageWizardIngestConfigPanel implements WizardDescriptor.Panel<WizardDe
|
||||
// process is over, doesn't need to be dealt with if cancel happens
|
||||
cancelledWhileRunning.disable();
|
||||
|
||||
//enqueue what would be in done() to EDT thread
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
postProcessImage();
|
||||
}
|
||||
});
|
||||
// //enqueue what would be in done() to EDT thread
|
||||
// EventQueue.invokeLater(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// postProcessImage();
|
||||
// }
|
||||
// });
|
||||
|
||||
/////////////////Done() is already executed in EDT per SwingWorker javadocs -jm
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -572,11 +573,17 @@ class AddImageWizardIngestConfigPanel implements WizardDescriptor.Panel<WizardDe
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* (called by EventDispatch Thread after doInBackground finishes)
|
||||
*/
|
||||
protected void postProcessImage() {
|
||||
@Override
|
||||
protected void done() {
|
||||
//these are required to stop the CurrentDirectoryFetcher
|
||||
progressBar.setIndeterminate(false);
|
||||
setProgress(100);
|
||||
|
||||
@ -587,15 +594,13 @@ class AddImageWizardIngestConfigPanel implements WizardDescriptor.Panel<WizardDe
|
||||
revert();
|
||||
if (hasCritError) {
|
||||
//core error
|
||||
progressPanel.getComponent().showErrors(errorString, true);
|
||||
progressPanel.setErrors(errorString, true);
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
if (errorString != null) {
|
||||
//data error (non-critical)
|
||||
logger.log(Level.INFO, "Handling non-critical errors that occured in add image process");
|
||||
progressPanel.setErrors(errorString, false);
|
||||
}
|
||||
} else if (errorString != null) {
|
||||
//data error (non-critical)
|
||||
logger.log(Level.INFO, "Handling non-critical errors that occured in add image process");
|
||||
progressPanel.setErrors(errorString, false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Updated by build script
|
||||
#Fri, 23 Aug 2013 15:47:56 -0400
|
||||
#Thu, 19 Sep 2013 09:33:45 -0400
|
||||
LBL_splash_window_title=Starting Autopsy
|
||||
SPLASH_HEIGHT=288
|
||||
SPLASH_WIDTH=538
|
||||
@ -8,4 +8,4 @@ SplashRunningTextBounds=5,266,530,17
|
||||
SplashRunningTextColor=0x0
|
||||
SplashRunningTextFontSize=18
|
||||
|
||||
currentVersion=Autopsy 20130823
|
||||
currentVersion=Autopsy 20130919
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Updated by build script
|
||||
#Fri, 23 Aug 2013 15:47:56 -0400
|
||||
#Thu, 19 Sep 2013 09:33:45 -0400
|
||||
|
||||
CTL_MainWindow_Title=Autopsy 20130823
|
||||
CTL_MainWindow_Title_No_Project=Autopsy 20130823
|
||||
CTL_MainWindow_Title=Autopsy 20130919
|
||||
CTL_MainWindow_Title_No_Project=Autopsy 20130919
|
||||
|
Loading…
x
Reference in New Issue
Block a user