19package org.sleuthkit.autopsy.casemodule;
21import java.awt.event.ActionEvent;
22import java.nio.file.Path;
23import java.util.concurrent.ExecutionException;
24import java.util.logging.Level;
25import javax.swing.AbstractAction;
26import javax.swing.SwingWorker;
27import org.openide.util.NbBundle;
28import org.sleuthkit.autopsy.coreutils.Logger;
29import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
30import org.sleuthkit.autopsy.featureaccess.FeatureAccessUtils;
31import org.sleuthkit.autopsy.ingest.IngestManager;
50 "DeleteDataSourceAction.name.text=Remove Data Source"
53 super(Bundle.DeleteDataSourceAction_name_text());
59 "DeleteDataSourceAction.ingestRunningWarningDialog.message=Data sources cannot be removed from a case when ingest is running.",
60 "DeleteDataSourceAction.confirmationDialog.message=Are you sure you want to remove the selected data source from the case?\nNote that the case will be closed and re-opened during the removal.",
61 "# {0} - exception message",
"DeleteDataSourceAction.exceptionMessage.dataSourceDeletionError=An error occurred while removing the data source:\n{0}\nPlease see the application log for details.",
62 "# {0} - exception message",
"DeleteDataSourceAction.exceptionMessage.couldNotReopenCase=Failed to re-open the case:\n{0}\nPlease see the application log for details."
96 }
catch (InterruptedException | ExecutionException ex) {
123 }
catch (InterruptedException ex) {
124 logger.log(Level.WARNING, String.format(
"Interrupted reopening case after error deleting data source (obj_id=%d)",
dataSourceObjectID), ex);
126 }
catch (ExecutionException ex) {
127 logger.log(Level.SEVERE, String.format(
"Error reopening case after error deleting data source (obj_id=%d)",
dataSourceObjectID), ex);
static void openAsCurrentCase(String caseMetadataFilePath)
CaseMetadata getMetadata()
static Case getCurrentCase()
static boolean isCaseOpen()
DeleteDataSourceAction clone()
void setDataSourceID(long dataSourceObjectID)
void actionPerformed(ActionEvent event)
static final Logger logger
static final long serialVersionUID
DeleteDataSourceAction(Long dataSourceObjectID)
Path caseMetadataFilePath
static StartupWindowProvider getInstance()
synchronized static Logger getLogger(String name)
static void warn(String message)
static void show(String message, MessageType messageType)
static boolean confirm(String message)
static boolean canDeleteDataSources()
static synchronized IngestManager getInstance()
boolean isIngestRunning()