Autopsy 4.22.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 */
6package org.sleuthkit.autopsy.actions;
7
8import org.openide.DialogDescriptor;
9import org.openide.DialogDisplayer;
10import org.openide.NotifyDescriptor;
11import org.sleuthkit.autopsy.ingest.IngestManager;
12
18public 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
51 }
52
53}
static boolean checkAndConfirmProceed(String optionsDlgTitle, String optionsDlgMessage)
static synchronized IngestManager getInstance()

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.