mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Format DeleteDataSourceAction.java
This commit is contained in:
parent
acaa15c359
commit
aa6122ce8f
@ -34,9 +34,10 @@ import org.sleuthkit.datamodel.TskCoreException;
|
|||||||
* Instances of this Action allow users to delete the specified data source.
|
* Instances of this Action allow users to delete the specified data source.
|
||||||
*/
|
*/
|
||||||
public final class DeleteDataSourceAction extends AbstractAction {
|
public final class DeleteDataSourceAction extends AbstractAction {
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(DeleteDataSourceAction.class.getName());
|
private static final Logger logger = Logger.getLogger(DeleteDataSourceAction.class.getName());
|
||||||
private final Long dataSourceId;
|
private final Long dataSourceId;
|
||||||
|
|
||||||
@NbBundle.Messages({"DeleteDataSourceAction.name.text=Delete Data Source"})
|
@NbBundle.Messages({"DeleteDataSourceAction.name.text=Delete Data Source"})
|
||||||
public DeleteDataSourceAction(Long dataSourceId) {
|
public DeleteDataSourceAction(Long dataSourceId) {
|
||||||
super(Bundle.DeleteDataSourceAction_name_text());
|
super(Bundle.DeleteDataSourceAction_name_text());
|
||||||
@ -52,6 +53,7 @@ public final class DeleteDataSourceAction extends AbstractAction {
|
|||||||
logger.log(Level.WARNING, "Error Deleting Data source " + dataSourceId, e);
|
logger.log(Level.WARNING, "Error Deleting Data source " + dataSourceId, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void deleteDataSource(Long dataSourceId) throws KeywordSearchServiceException {
|
private static void deleteDataSource(Long dataSourceId) throws KeywordSearchServiceException {
|
||||||
try {
|
try {
|
||||||
KeywordSearchService kwsService = Lookup.getDefault().lookup(KeywordSearchService.class);
|
KeywordSearchService kwsService = Lookup.getDefault().lookup(KeywordSearchService.class);
|
||||||
@ -59,6 +61,6 @@ public final class DeleteDataSourceAction extends AbstractAction {
|
|||||||
} catch (KeywordSearchServiceException e) {
|
} catch (KeywordSearchServiceException e) {
|
||||||
logger.log(Level.WARNING, "KWS Error", e);
|
logger.log(Level.WARNING, "KWS Error", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user