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 boolean
Adds the specified library search path path to the end of the path search listgetLibraryFsrlList
(ByteProvider provider, Program program, MessageLog log, TaskMonitor monitor) static String[]
Returns an array of library search pathsstatic void
reset()
Resets the library search path to the default valuesstatic void
setLibraryPaths
(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(ByteProvider provider, Program program, MessageLog log, TaskMonitor monitor) throws CancelledException - Parameters:
provider
- TheByteProvider
of the program being loadedprogram
- TheProgram
being loadedlog
- The logmonitor
- A cancellable monitor- Returns:
- a
List
ofFSRL
s 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 path path to 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
-