Package ghidra.framework
Class GenericRunInfo
- java.lang.Object
-
- ghidra.framework.GenericRunInfo
-
public class GenericRunInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TEST_DIRECTORY_SUFFIX
The name appended to application directories during testing
-
Constructor Summary
Constructors Constructor Description GenericRunInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.io.File>
getPreviousApplicationSettingsDirsByTime()
This is the same asgetUserSettingsDirsByTime()
except that it doesn't include the current installation or installations with different release namesstatic java.io.File
getPreviousApplicationSettingsFile(java.lang.String filename)
Searches previous Application Settings directories (getUserSettingsDirsByTime()
) to find a file by the given name.static java.lang.String
getProjectsDirPath()
Get the user's preferred projects directory.static void
setProjectsDirPath(java.lang.String path)
Set the user's current projects directory path.
-
-
-
Field Detail
-
TEST_DIRECTORY_SUFFIX
public static final java.lang.String TEST_DIRECTORY_SUFFIX
The name appended to application directories during testing- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreviousApplicationSettingsFile
public static java.io.File getPreviousApplicationSettingsFile(java.lang.String filename)
Searches previous Application Settings directories (getUserSettingsDirsByTime()
) to find a file by the given name. This is useful for loading previous user settings, such as preferences.Note: this method will ignore any test versions of settings directories.
- Parameters:
filename
- the name for which to seek; must be relative to a settings directory- Returns:
- the most recent file matching that name found in a previous settings dir
-
getPreviousApplicationSettingsDirsByTime
public static java.util.List<java.io.File> getPreviousApplicationSettingsDirsByTime()
This is the same asgetUserSettingsDirsByTime()
except that it doesn't include the current installation or installations with different release names- Returns:
- the list of previous directories, sorted by time
-
getProjectsDirPath
public static java.lang.String getProjectsDirPath()
Get the user's preferred projects directory.- Returns:
- projects directory path.
-
setProjectsDirPath
public static void setProjectsDirPath(java.lang.String path)
Set the user's current projects directory path. Value is also retained within user's set of preferences.- Parameters:
path
- projects directory path.
-
-