Implementation of viewer changes a tad also

This commit is contained in:
U-BASIS\dsmyda 2018-09-18 12:12:14 -04:00
parent c31044a657
commit d43b705eba

View File

@ -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