Package ghidra.plugin.importer
Class ProjectIndexService
java.lang.Object
ghidra.plugin.importer.ProjectIndexService
- All Implemented Interfaces:
DomainFolderChangeListener
An in-memory index of FSRL-to-domainfile in the current project.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
domainFileAdded
(DomainFile file) Notification that a file is added to parent folder.void
domainFileRemoved
(DomainFolder parent, String name, String fileID) Notification that a file was removedfindFirstByFSRL
(FSRL fsrl) static ProjectIndexService
lookupFiles
(ProjectIndexService.IndexType keyType, Object keyValue) void
setProject
(Project newProject, TaskMonitor monitor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.framework.model.DomainFolderChangeListener
domainFileMoved, domainFileObjectClosed, domainFileObjectOpenedForUpdate, domainFileRenamed, domainFileStatusChanged, domainFolderAdded, domainFolderMoved, domainFolderRemoved, domainFolderRenamed, domainFolderSetActive
-
Method Details
-
getInstance
-
clearProject
public void clearProject() -
setProject
-
domainFileAdded
Description copied from interface:DomainFolderChangeListener
Notification that a file is added to parent folder. You can get the parent from the file.- Specified by:
domainFileAdded
in interfaceDomainFolderChangeListener
- Parameters:
file
- domain file which was just added.
-
domainFileRemoved
Description copied from interface:DomainFolderChangeListener
Notification that a file was removed- Specified by:
domainFileRemoved
in interfaceDomainFolderChangeListener
- Parameters:
parent
- domain folder which contained the file that was just removed.name
- the name of the file that was removed.fileID
- file ID or null
-
lookupFiles
-
findFirstByFSRL
-