Package ghidra.app.plugin.debug
Class DomainFolderChangesDisplayPlugin
- java.lang.Object
-
- ghidra.framework.plugintool.Plugin
-
- ghidra.app.plugin.debug.DomainFolderChangesDisplayPlugin
-
- All Implemented Interfaces:
FrontEndable,FrontEndOnly,DomainFolderChangeListener,ProjectListener,PluginEventListener,ServiceListener,ExtensionPoint
public class DomainFolderChangesDisplayPlugin extends Plugin implements FrontEndOnly, ProjectListener, DomainFolderChangeListener
-
-
Field Summary
-
Fields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool
-
-
Constructor Summary
Constructors Constructor Description DomainFolderChangesDisplayPlugin(PluginTool tool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispose()Tells a plugin that it is no longer needed.voiddomainFileAdded(DomainFile file)Notification that a file is added to parent folder.voiddomainFileMoved(DomainFile file, DomainFolder oldParent, java.lang.String oldName)Notification that the domain file was moved.voiddomainFileObjectClosed(DomainFile file, DomainObject object)Notification that a domain file previously open for update is in the process of closing.voiddomainFileObjectOpenedForUpdate(DomainFile file, DomainObject object)Notification that a domain file has been opened for update.voiddomainFileObjectReplaced(DomainFile file, DomainObject oldObject)Notification that a new version of the domain object exists and the current one is no longer valid.voiddomainFileRemoved(DomainFolder parent, java.lang.String name, java.lang.String fileID)Notification that a file was removedvoiddomainFileRenamed(DomainFile file, java.lang.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, java.lang.String name)Notification that a domain folder is removed.voiddomainFolderRenamed(DomainFolder folder, java.lang.String oldName)Notify listeners when a domain folder is renamed.voiddomainFolderSetActive(DomainFolder folder)Notification that the setActive() method on the folder was called.protected voidinit()Initialization method; override to add initialization for this plugin.voidprojectClosed(Project project)Notification that the given project is closed.voidprojectOpened(Project project)Notification that the given project is open.-
Methods inherited from class ghidra.framework.plugintool.Plugin
acceptData, canClose, canCloseDomainObject, cleanup, close, dataStateRestoreCompleted, dependsUpon, deregisterService, equals, eventSent, firePluginEvent, getData, getMissingRequiredServices, getName, getPluginDescription, getPluginName, getServicesRequired, getSupportedDataTypes, getTool, getTransientState, getUndoRedoState, hashCode, hasMissingRequiredService, hasUnsaveData, isDisposed, prepareToSave, processEvent, readConfigState, readDataState, registerDynamicEventConsumed, registerDynamicServiceProvided, registerEventConsumed, registerEventProduced, registerServiceProvided, registerServiceUsed, restoreTransientState, restoreUndoRedoState, saveData, serviceAdded, serviceRemoved, writeConfigState, writeDataState
-
-
-
-
Constructor Detail
-
DomainFolderChangesDisplayPlugin
public DomainFolderChangesDisplayPlugin(PluginTool tool)
-
-
Method Detail
-
init
protected void init()
Description copied from class:PluginInitialization 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:PluginTells 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
public void projectOpened(Project project)
Description copied from interface:ProjectListenerNotification that the given project is open.- Specified by:
projectOpenedin interfaceProjectListener- Parameters:
project- project that is opened
-
projectClosed
public void projectClosed(Project project)
Description copied from interface:ProjectListenerNotification that the given project is closed.- Specified by:
projectClosedin interfaceProjectListener- Parameters:
project- project that is closed
-
domainFolderAdded
public void domainFolderAdded(DomainFolder folder)
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
public void domainFileAdded(DomainFile file)
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
public void domainFolderRemoved(DomainFolder parent, java.lang.String name)
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
public void domainFileRemoved(DomainFolder parent, java.lang.String name, java.lang.String fileID)
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
public void domainFolderRenamed(DomainFolder folder, java.lang.String oldName)
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
public void domainFileRenamed(DomainFile file, java.lang.String oldName)
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
public void domainFolderMoved(DomainFolder folder, DomainFolder oldParent)
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
public void domainFileMoved(DomainFile file, DomainFolder oldParent, java.lang.String oldName)
Description copied from interface:DomainFolderChangeListenerNotification that the domain file was moved.- Specified by:
domainFileMovedin interfaceDomainFolderChangeListener- Parameters:
file- the file (after move)oldParent- original parent folder
-
domainFolderSetActive
public void domainFolderSetActive(DomainFolder folder)
Description copied from interface:DomainFolderChangeListenerNotification that the setActive() method on the folder was called.- Specified by:
domainFolderSetActivein interfaceDomainFolderChangeListener
-
domainFileStatusChanged
public void domainFileStatusChanged(DomainFile file, boolean fileIDset)
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.
-
domainFileObjectReplaced
public void domainFileObjectReplaced(DomainFile file, DomainObject oldObject)
Description copied from interface:DomainFolderChangeListenerNotification that a new version of the domain object exists and the current one is no longer valid. Existing consumers should be immediately released and no additional use of the oldObject is permitted once this method returns. This is only called for domain objects which were opened for update.- Specified by:
domainFileObjectReplacedin interfaceDomainFolderChangeListener- Parameters:
file- file whose object was replacedoldObject- old object that was replaced
-
domainFileObjectOpenedForUpdate
public void domainFileObjectOpenedForUpdate(DomainFile file, DomainObject object)
Description copied from interface:DomainFolderChangeListenerNotification that a domain file has been opened for update.- Specified by:
domainFileObjectOpenedForUpdatein interfaceDomainFolderChangeListener- Parameters:
file- domain fileobject- domain object open for update
-
domainFileObjectClosed
public void domainFileObjectClosed(DomainFile file, DomainObject object)
Description copied from interface:DomainFolderChangeListenerNotification that a domain file previously open for update is in the process of closing.- Specified by:
domainFileObjectClosedin interfaceDomainFolderChangeListener- Parameters:
file- domain fileobject- domain object which was open for update
-
-