Added tool name user preferences field

This commit is contained in:
Ann Priestman 2016-09-14 13:43:11 -04:00
parent a45501a684
commit e36019654f

View File

@ -65,6 +65,7 @@ public final class UserPreferences {
private static final int DEFAULT_PROCESS_TIMEOUT_HR = 60; private static final int DEFAULT_PROCESS_TIMEOUT_HR = 60;
private static final String DEFAULT_PORT_STRING = "61616"; private static final String DEFAULT_PORT_STRING = "61616";
private static final int DEFAULT_PORT_INT = 61616; private static final int DEFAULT_PORT_INT = 61616;
private static final String TOOL_NAME = "ToolName";
// Prevent instantiation. // Prevent instantiation.
private UserPreferences() { private UserPreferences() {
@ -284,6 +285,23 @@ public final class UserPreferences {
preferences.putBoolean(PROCESS_TIME_OUT_ENABLED, enabled); 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. * Provides ability to convert text to hex text.