19 package org.sleuthkit.autopsy.casemodule;
21 import java.awt.event.ActionEvent;
22 import java.nio.file.Path;
23 import java.util.concurrent.ExecutionException;
24 import java.util.logging.Level;
25 import javax.swing.AbstractAction;
26 import javax.swing.SwingWorker;
27 import org.openide.util.NbBundle;
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."
88 Case.deleteDataSourceFromCurrentCase(dataSourceObjectID);
96 }
catch (InterruptedException | ExecutionException ex) {
97 logger.log(Level.SEVERE, String.format(
"Error deleting data source (obj_id=%d)", dataSourceObjectID), 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 boolean canDeleteDataSources()
static synchronized IngestManager getInstance()
DeleteDataSourceAction(Long dataSourceObjectID)
static void warn(String message)
boolean isIngestRunning()
static final Logger logger
static final long serialVersionUID
static boolean confirm(String message)
static void show(String message, MessageType messageType)
CaseMetadata getMetadata()
static void openAsCurrentCase(String caseMetadataFilePath)
Path caseMetadataFilePath
DeleteDataSourceAction clone()
void actionPerformed(ActionEvent event)
static Case getCurrentCase()
synchronized static Logger getLogger(String name)
void setDataSourceID(long dataSourceObjectID)
static StartupWindowProvider getInstance()
static boolean isCaseOpen()