Package ghidra.app.plugin.debug
Class DomainFolderChangesDisplayPlugin
java.lang.Object
ghidra.framework.plugintool.Plugin
ghidra.app.plugin.debug.DomainFolderChangesDisplayPlugin
- All Implemented Interfaces:
ApplicationLevelOnlyPlugin
,ApplicationLevelPlugin
,DomainFolderChangeListener
,ProjectListener
,PluginEventListener
,ServiceListener
,ExtensionPoint
public class DomainFolderChangesDisplayPlugin
extends Plugin
implements ApplicationLevelOnlyPlugin, ProjectListener, DomainFolderChangeListener
-
Field Summary
Fields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispose()
Tells a plugin that it is no longer needed.void
domainFileAdded
(DomainFile file) Notification that a file is added to parent folder.void
domainFileMoved
(DomainFile file, DomainFolder oldParent, String oldName) Notification that the domain file was moved.void
domainFileObjectClosed
(DomainFile file, DomainObject object) Notification that a domain file previously open for update is in the process of closing.void
domainFileObjectOpenedForUpdate
(DomainFile file, DomainObject object) Notification that a domain file has been opened for update.void
domainFileRemoved
(DomainFolder parent, String name, String fileID) Notification that a file was removedvoid
domainFileRenamed
(DomainFile file, String oldName) Notification that the domain file was renamed.void
domainFileStatusChanged
(DomainFile file, boolean fileIDset) Notification that the status for a domain file has changed.void
domainFolderAdded
(DomainFolder folder) Notification that a folder is added to parent.void
domainFolderMoved
(DomainFolder folder, DomainFolder oldParent) Notification that the domain folder was moved.void
domainFolderRemoved
(DomainFolder parent, String name) Notification that a domain folder is removed.void
domainFolderRenamed
(DomainFolder folder, String oldName) Notify listeners when a domain folder is renamed.void
domainFolderSetActive
(DomainFolder folder) Notification that the setActive() method on the folder was called.protected void
init()
Initialization method; override to add initialization for this plugin.void
projectClosed
(Project project) Notification that the given project is closed.void
projectOpened
(Project project) Notification that the given project is open.Methods inherited from class ghidra.framework.plugintool.Plugin
accept, acceptData, canClose, canCloseDomainObject, cleanup, close, dataStateRestoreCompleted, dependsUpon, deregisterService, equals, eventSent, firePluginEvent, getData, getMissingRequiredServices, getName, getPluginDescription, getServicesRequired, getSupportedDataTypes, getTool, getTransientState, getUndoRedoState, hashCode, hasMissingRequiredService, hasUnsaveData, internalRegisterEventConsumed, isDisposed, prepareToSave, processEvent, readConfigState, readDataState, registerDynamicServiceProvided, registerServiceProvided, restoreTransientState, restoreUndoRedoState, saveData, serviceAdded, serviceRemoved, writeConfigState, writeDataState
-
Constructor Details
-
DomainFolderChangesDisplayPlugin
-
-
Method Details
-
init
protected void init()Description copied from class:Plugin
Initialization method; override to add initialization for this plugin. This is where a plugin should acquire its services. When this method is called, all plugins have been instantiated in the tool. -
dispose
protected void dispose()Description copied from class:Plugin
Tells a plugin that it is no longer needed. The plugin should release any resources that it has. All actions, components, services will automatically be cleaned up. -
projectOpened
Description copied from interface:ProjectListener
Notification that the given project is open.- Specified by:
projectOpened
in interfaceProjectListener
- Parameters:
project
- project that is opened
-
projectClosed
Description copied from interface:ProjectListener
Notification that the given project is closed.- Specified by:
projectClosed
in interfaceProjectListener
- Parameters:
project
- project that is closed
-
domainFolderAdded
Description copied from interface:DomainFolderChangeListener
Notification that a folder is added to parent.- Specified by:
domainFolderAdded
in interfaceDomainFolderChangeListener
- Parameters:
folder
- domain folder which was just added.
-
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.
-
domainFolderRemoved
Description copied from interface:DomainFolderChangeListener
Notification that a domain folder is removed.- Specified by:
domainFolderRemoved
in 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: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
-
domainFolderRenamed
Description copied from interface:DomainFolderChangeListener
Notify listeners when a domain folder is renamed.- Specified by:
domainFolderRenamed
in interfaceDomainFolderChangeListener
- Parameters:
folder
- folder that was renamedoldName
- old name of folder
-
domainFileRenamed
Description copied from interface:DomainFolderChangeListener
Notification that the domain file was renamed.- Specified by:
domainFileRenamed
in interfaceDomainFolderChangeListener
- Parameters:
file
- file that was renamedoldName
- old name of the file
-
domainFolderMoved
Description copied from interface:DomainFolderChangeListener
Notification that the domain folder was moved.- Specified by:
domainFolderMoved
in interfaceDomainFolderChangeListener
- Parameters:
folder
- the folder (after move)oldParent
- original parent folder
-
domainFileMoved
Description copied from interface:DomainFolderChangeListener
Notification that the domain file was moved.- Specified by:
domainFileMoved
in interfaceDomainFolderChangeListener
- Parameters:
file
- the file (after move)oldParent
- original parent folderoldName
- file name prior to move
-
domainFolderSetActive
Description copied from interface:DomainFolderChangeListener
Notification that the setActive() method on the folder was called.- Specified by:
domainFolderSetActive
in interfaceDomainFolderChangeListener
- Parameters:
folder
- folder which was activated/visited
-
domainFileStatusChanged
Description copied from interface:DomainFolderChangeListener
Notification that the status for a domain file has changed.- Specified by:
domainFileStatusChanged
in interfaceDomainFolderChangeListener
- Parameters:
file
- file whose status has changed.fileIDset
- if true indicates that the previously missing fileID has been established for the specified file.
-
domainFileObjectOpenedForUpdate
Description copied from interface:DomainFolderChangeListener
Notification that a domain file has been opened for update.- Specified by:
domainFileObjectOpenedForUpdate
in interfaceDomainFolderChangeListener
- Parameters:
file
- domain fileobject
- domain object open for update
-
domainFileObjectClosed
Description copied from interface:DomainFolderChangeListener
Notification that a domain file previously open for update is in the process of closing.- Specified by:
domainFileObjectClosed
in interfaceDomainFolderChangeListener
- Parameters:
file
- domain fileobject
- domain object which was open for update
-