Package ghidra.framework.model
Interface DomainFolderChangeListener
- All Known Implementing Classes:
DomainFolderChangesDisplayPlugin,DomainFolderListenerAdapter,ProjectIndexService
public interface DomainFolderChangeListener
Methods for notifications when changes are made to a domain folder or
a domain file.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddomainFileAdded(DomainFile file) Notification that a file is added to parent folder.default voiddomainFileMoved(DomainFile file, DomainFolder oldParent, String oldName) Notification that the domain file was moved.default voiddomainFileObjectClosed(DomainFile file, DomainObject object) Notification that a domain file previously open for update is in the process of closing.default voiddomainFileObjectOpenedForUpdate(DomainFile file, DomainObject object) Notification that a domain file has been opened for update.default voiddomainFileRemoved(DomainFolder parent, String name, String fileID) Notification that a file was removeddefault voiddomainFileRenamed(DomainFile file, String oldName) Notification that the domain file was renamed.default voiddomainFileStatusChanged(DomainFile file, boolean fileIDset) Notification that the status for a domain file has changed.default voiddomainFolderAdded(DomainFolder folder) Notification that a folder is added to parent.default voiddomainFolderMoved(DomainFolder folder, DomainFolder oldParent) Notification that the domain folder was moved.default voiddomainFolderRemoved(DomainFolder parent, String name) Notification that a domain folder is removed.default voiddomainFolderRenamed(DomainFolder folder, String oldName) Notify listeners when a domain folder is renamed.default voiddomainFolderSetActive(DomainFolder folder) Notification that the setActive() method on the folder was called.
-
Method Details
-
domainFolderAdded
Notification that a folder is added to parent.- Parameters:
folder- domain folder which was just added.
-
domainFileAdded
Notification that a file is added to parent folder. You can get the parent from the file.- Parameters:
file- domain file which was just added.
-
domainFolderRemoved
Notification that a domain folder is removed.- Parameters:
parent- domain folder which contained the folder that was just removed.name- the name of the folder that was removed.
-
domainFileRemoved
Notification that a file was removed- 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
-
domainFolderRenamed
Notify listeners when a domain folder is renamed.NOTE: Only a single event will be sent for the specific folder renamed and not its children. If the listener cares about the impact of this event on the folder's children it will need to process accordingly.
- Parameters:
folder- folder that was renamedoldName- old name of folder
-
domainFileRenamed
Notification that the domain file was renamed.- Parameters:
file- file that was renamedoldName- old name of the file
-
domainFolderMoved
Notification that the domain folder was moved.NOTE: Only a single event will be sent for the specific folder moved and not its children. If the listener cares about the impact of this event on the folder's children it will need to process accordingly.
- Parameters:
folder- the folder (after move)oldParent- original parent folder
-
domainFileMoved
Notification that the domain file was moved.- Parameters:
file- the file (after move)oldParent- original parent folderoldName- file name prior to move
-
domainFolderSetActive
Notification that the setActive() method on the folder was called.- Parameters:
folder- folder which was activated/visited
-
domainFileStatusChanged
Notification that the status for a domain file has changed.- Parameters:
file- file whose status has changed.fileIDset- if true indicates that the previously missing fileID has been established for the specified file.
-
domainFileObjectOpenedForUpdate
Notification that a domain file has been opened for update.- Parameters:
file- domain fileobject- domain object open for update
-
domainFileObjectClosed
Notification that a domain file previously open for update is in the process of closing.- Parameters:
file- domain fileobject- domain object which was open for update
-