Package ghidra.app.util.importer
Class LibrarySearchPathManager
java.lang.Object
ghidra.app.util.importer.LibrarySearchPathManager
A simple class for managing the library search path and avoiding duplicate directories.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanAdds the specified library search pathpathto the end of the path search listgetLibraryFsrlList(Program program, MessageLog log, TaskMonitor monitor) static String[]Returns an array of library search pathsstatic voidreset()Resets the library search path to the default valuesstatic voidsetLibraryPaths(String[] paths) Sets the library search paths to the given array
-
Method Details
-
getLibraryPaths
Returns an array of library search paths- Returns:
- an array of library search paths
-
getLibraryFsrlList
public static List<FSRL> getLibraryFsrlList(Program program, MessageLog log, TaskMonitor monitor) throws CancelledException - Parameters:
program- TheProgrambeing loadedlog- The logmonitor- A cancellable monitor- Returns:
- a
ListofFSRLs to search for libraries - Throws:
CancelledException- if the user cancelled the operation
-
setLibraryPaths
Sets the library search paths to the given array- Parameters:
paths- the new library search paths
-
addPath
Adds the specified library search pathpathto the end of the path search list- Parameters:
path- the library search path to add- Returns:
- true if the path was appended, false if the path was a duplicate
-
reset
public static void reset()Resets the library search path to the default values
-