mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Added documentation and fixed log messages.
This commit is contained in:
parent
aa4736fafa
commit
8c438df2c1
@ -506,6 +506,12 @@ public class HashDbManager implements PropertyChangeListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures the given settings object by adding all contained hash db to
|
||||||
|
* the system.
|
||||||
|
*
|
||||||
|
* @param settings The settings to configure.
|
||||||
|
*/
|
||||||
@Messages({"# {0} - database name", "HashDbManager.noDbPath.message=Couldn't get valid database path for: {0}"})
|
@Messages({"# {0} - database name", "HashDbManager.noDbPath.message=Couldn't get valid database path for: {0}"})
|
||||||
private void configureSettings(HashLookupSettings settings) {
|
private void configureSettings(HashLookupSettings settings) {
|
||||||
boolean dbInfoRemoved = false;
|
boolean dbInfoRemoved = false;
|
||||||
|
@ -202,7 +202,7 @@ final class HashLookupSettings implements Serializable {
|
|||||||
++suffix;
|
++suffix;
|
||||||
newHashSetName = hashSetName + suffix;
|
newHashSetName = hashSetName + suffix;
|
||||||
} while (hashSetNames.contains(newHashSetName));
|
} while (hashSetNames.contains(newHashSetName));
|
||||||
logger.log(Level.INFO, "Duplicate hash set name " + hashSetName + " found.\nReplacing with " + newHashSetName + ".");
|
logger.log(Level.INFO, "Duplicate hash set name " + hashSetName + " found. Replacing with " + newHashSetName + ".");
|
||||||
if (RuntimeProperties.coreComponentsAreActive()) {
|
if (RuntimeProperties.coreComponentsAreActive()) {
|
||||||
JOptionPane.showMessageDialog(null,
|
JOptionPane.showMessageDialog(null,
|
||||||
NbBundle.getMessage(HashLookupSettings.class,
|
NbBundle.getMessage(HashLookupSettings.class,
|
||||||
@ -268,7 +268,7 @@ final class HashLookupSettings implements Serializable {
|
|||||||
"HashDbManager.baseMessage.updatedFormatHashDbConfig");
|
"HashDbManager.baseMessage.updatedFormatHashDbConfig");
|
||||||
try {
|
try {
|
||||||
FileUtils.copyFile(new File(configFilePath), new File(backupFilePath));
|
FileUtils.copyFile(new File(configFilePath), new File(backupFilePath));
|
||||||
logger.log(Level.INFO, baseMessage + "\nA backup copy of the old configuration has been saved as\n" + backupFilePath);
|
logger.log(Level.INFO, "Updated the schema, backup saved at: " + backupFilePath);
|
||||||
if (RuntimeProperties.coreComponentsAreActive()) {
|
if (RuntimeProperties.coreComponentsAreActive()) {
|
||||||
JOptionPane.showMessageDialog(null,
|
JOptionPane.showMessageDialog(null,
|
||||||
NbBundle.getMessage(HashLookupSettings.class,
|
NbBundle.getMessage(HashLookupSettings.class,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user