From e36019654fda2d73f852b6112ecee3177f351fdd Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Wed, 14 Sep 2016 13:43:11 -0400 Subject: [PATCH 1/2] Added tool name user preferences field --- .../autopsy/core/UserPreferences.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java index 0cfaddf97b..195b0f5e6f 100755 --- a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java +++ b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java @@ -65,6 +65,7 @@ public final class UserPreferences { private static final int DEFAULT_PROCESS_TIMEOUT_HR = 60; private static final String DEFAULT_PORT_STRING = "61616"; private static final int DEFAULT_PORT_INT = 61616; + private static final String TOOL_NAME = "ToolName"; // Prevent instantiation. private UserPreferences() { @@ -284,6 +285,23 @@ public final class UserPreferences { preferences.putBoolean(PROCESS_TIME_OUT_ENABLED, enabled); } + /** + * Get the display name for this program + * @return Name for the tool + */ + public static String getToolName(){ + return preferences.get(TOOL_NAME, "Autopsy"); + } + + /** + * Set the display name for this program + * + * @param name Display name + */ + public static void setToolName(String name){ + preferences.put(TOOL_NAME, name); + } + /** * Provides ability to convert text to hex text. From 058c229c6795257134a314112c1aec6ef17929f2 Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Thu, 15 Sep 2016 09:04:06 -0400 Subject: [PATCH 2/2] Changed "ToolName" to "AppName" --- .../org/sleuthkit/autopsy/core/UserPreferences.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java index 195b0f5e6f..784556e7a4 100755 --- a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java +++ b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java @@ -65,7 +65,7 @@ public final class UserPreferences { private static final int DEFAULT_PROCESS_TIMEOUT_HR = 60; private static final String DEFAULT_PORT_STRING = "61616"; private static final int DEFAULT_PORT_INT = 61616; - private static final String TOOL_NAME = "ToolName"; + private static final String APP_NAME = "AppName"; // Prevent instantiation. private UserPreferences() { @@ -287,10 +287,10 @@ public final class UserPreferences { /** * Get the display name for this program - * @return Name for the tool + * @return Name of this program */ - public static String getToolName(){ - return preferences.get(TOOL_NAME, "Autopsy"); + public static String getAppName(){ + return preferences.get(APP_NAME, "Autopsy"); } /** @@ -298,8 +298,8 @@ public final class UserPreferences { * * @param name Display name */ - public static void setToolName(String name){ - preferences.put(TOOL_NAME, name); + public static void setAppName(String name){ + preferences.put(APP_NAME, name); }