mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Implementation of viewer changes a tad also
This commit is contained in:
parent
c31044a657
commit
d43b705eba
@ -361,10 +361,7 @@ class SQLiteViewer extends javax.swing.JPanel implements FileTypeViewer {
|
|||||||
private void processSQLiteFile() {
|
private void processSQLiteFile() {
|
||||||
tablesDropdownList.removeAllItems();
|
tablesDropdownList.removeAllItems();
|
||||||
try {
|
try {
|
||||||
String localDiskPath = Case.getCurrentCaseThrows().getTempDirectory() +
|
sqliteReader = FileReaderFactory.createReader(sqliteDbFile, SUPPORTED_MIMETYPES[0]);
|
||||||
File.separator + sqliteDbFile.getName();
|
|
||||||
|
|
||||||
sqliteReader = FileReaderFactory.createReader(SUPPORTED_MIMETYPES[0], sqliteDbFile, localDiskPath);
|
|
||||||
|
|
||||||
Map<String, String> dbTablesMap = sqliteReader.getTableSchemas();
|
Map<String, String> dbTablesMap = sqliteReader.getTableSchemas();
|
||||||
|
|
||||||
@ -376,9 +373,6 @@ class SQLiteViewer extends javax.swing.JPanel implements FileTypeViewer {
|
|||||||
tablesDropdownList.addItem(tableName);
|
tablesDropdownList.addItem(tableName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (NoCurrentCaseException ex) {
|
|
||||||
logger.log(Level.SEVERE, "Current case has been closed", ex); //NON-NLS
|
|
||||||
MessageNotifyUtil.Message.error(Bundle.SQLiteViewer_errorMessage_noCurrentCase());
|
|
||||||
} catch (FileReaderException ex) {
|
} catch (FileReaderException ex) {
|
||||||
logger.log(Level.SEVERE, String.format(
|
logger.log(Level.SEVERE, String.format(
|
||||||
"Failed to get tables from DB file '%s' (objId=%d)", //NON-NLS
|
"Failed to get tables from DB file '%s' (objId=%d)", //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user