Autopsy  4.19.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestRunningCheck.java
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package org.sleuthkit.autopsy.actions;
7 
8 import org.openide.DialogDescriptor;
9 import org.openide.DialogDisplayer;
10 import org.openide.NotifyDescriptor;
12 
18 public class IngestRunningCheck {
19 
32  public static boolean checkAndConfirmProceed(String optionsDlgTitle, String optionsDlgMessage) {
34  NotifyDescriptor descriptor = new NotifyDescriptor.Confirmation(
35  optionsDlgMessage,
36  optionsDlgTitle,
37  NotifyDescriptor.YES_NO_OPTION,
38  NotifyDescriptor.WARNING_MESSAGE);
39  descriptor.setValue(NotifyDescriptor.NO_OPTION);
40  Object response = DialogDisplayer.getDefault().notify(descriptor);
41  return (DialogDescriptor.YES_OPTION == response);
42  } else {
43  return true;
44  }
45  }
46 
50  private IngestRunningCheck() {
51  }
52 
53 }
static synchronized IngestManager getInstance()
static boolean checkAndConfirmProceed(String optionsDlgTitle, String optionsDlgMessage)

Copyright © 2012-2021 Basis Technology. Generated on: Thu Sep 30 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.