Package ghidra.framework.model
Class DomainFolderListenerAdapter
java.lang.Object
ghidra.framework.model.DomainFolderListenerAdapter
- All Implemented Interfaces:
DomainFolderChangeListener
public abstract class DomainFolderListenerAdapter
extends Object
implements DomainFolderChangeListener
Adapter for the domain folder change listener.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddomainFileAdded(DomainFile file) Notification that a file is added to parent folder.voiddomainFileMoved(DomainFile file, DomainFolder oldParent, String oldName) Notification that the domain file was moved.voiddomainFileRemoved(DomainFolder parent, String name, String fileID) Notification that a file was removedvoiddomainFileRenamed(DomainFile file, String oldName) Notification that the domain file was renamed.voiddomainFileStatusChanged(DomainFile file, boolean fileIDset) Notification that the status for a domain file has changed.voiddomainFolderAdded(DomainFolder folder) Notification that a folder is added to parent.voiddomainFolderMoved(DomainFolder folder, DomainFolder oldParent) Notification that the domain folder was moved.voiddomainFolderRemoved(DomainFolder parent, String name) Notification that a domain folder is removed.voiddomainFolderRenamed(DomainFolder folder, String oldName) Notify listeners when a domain folder is renamed.voidstateChanged(String affectedNewPath, String affectedOldPath, boolean isFolder) Provides a consolidated callback for those listener methods which have not been overridden.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.framework.model.DomainFolderChangeListener
domainFileObjectClosed, domainFileObjectOpenedForUpdate, domainFolderSetActive
-
Constructor Details
-
DomainFolderListenerAdapter
protected DomainFolderListenerAdapter()
-
-
Method Details
-
stateChanged
Provides a consolidated callback for those listener methods which have not been overridden. This callback is NOT invoked for the following callbacks:- domainFolderSetActive
- domainFileObjectReplaced
- domainFileObjectOpenedForUpdate
- domainFileObjectClosed
- Parameters:
affectedNewPath- new path of affected folder/file, or null if item was removed (see affectedOldPath)affectedOldPath- original path of affected folder/file, or null for new item (see affectedOldPath)isFolder- true if affected item is/was a folder
-
domainFolderAdded
Description copied from interface:DomainFolderChangeListenerNotification that a folder is added to parent.- Specified by:
domainFolderAddedin interfaceDomainFolderChangeListener- Parameters:
folder- domain folder which was just added.
-
domainFileAdded
Description copied from interface:DomainFolderChangeListenerNotification that a file is added to parent folder. You can get the parent from the file.- Specified by:
domainFileAddedin interfaceDomainFolderChangeListener- Parameters:
file- domain file which was just added.
-
domainFolderRemoved
Description copied from interface:DomainFolderChangeListenerNotification that a domain folder is removed.- Specified by:
domainFolderRemovedin interfaceDomainFolderChangeListener- Parameters:
parent- domain folder which contained the folder that was just removed.name- the name of the folder that was removed.
-
domainFileRemoved
Description copied from interface:DomainFolderChangeListenerNotification that a file was removed- Specified by:
domainFileRemovedin 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
-
domainFolderRenamed
Description copied from interface:DomainFolderChangeListenerNotify listeners when a domain folder is renamed.- Specified by:
domainFolderRenamedin interfaceDomainFolderChangeListener- Parameters:
folder- folder that was renamedoldName- old name of folder
-
domainFileRenamed
Description copied from interface:DomainFolderChangeListenerNotification that the domain file was renamed.- Specified by:
domainFileRenamedin interfaceDomainFolderChangeListener- Parameters:
file- file that was renamedoldName- old name of the file
-
domainFolderMoved
Description copied from interface:DomainFolderChangeListenerNotification that the domain folder was moved.- Specified by:
domainFolderMovedin interfaceDomainFolderChangeListener- Parameters:
folder- the folder (after move)oldParent- original parent folder
-
domainFileMoved
Description copied from interface:DomainFolderChangeListenerNotification that the domain file was moved.- Specified by:
domainFileMovedin interfaceDomainFolderChangeListener- Parameters:
file- the file (after move)oldParent- original parent folderoldName- file name prior to move
-
domainFileStatusChanged
Description copied from interface:DomainFolderChangeListenerNotification that the status for a domain file has changed.- Specified by:
domainFileStatusChangedin interfaceDomainFolderChangeListener- Parameters:
file- file whose status has changed.fileIDset- if true indicates that the previously missing fileID has been established for the specified file.
-