Package ghidra.framework.main
Class FrontEndPlugin
java.lang.Object
ghidra.framework.plugintool.Plugin
ghidra.framework.main.FrontEndPlugin
- All Implemented Interfaces:
RemoteAdapterListener
,FrontEndService
,ProgramaticUseOnly
,ProjectViewListener
,PluginEventListener
,ServiceListener
,ExtensionPoint
public class FrontEndPlugin
extends Plugin
implements FrontEndService, RemoteAdapterListener, ProjectViewListener, ProgramaticUseOnly
Main plugin component for the Ghidra Project Window, which is
a PluginTool. This plugin manages all of the GUI elements, e.g., the
Data tree panel, view panels for other projects, etc.
-
Field Summary
Fields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified listener to the front-end tool.void
connectionStateChanged
(Object adapter) Callback notification indicating the remote object connection state has changed.protected void
protected void
dispose()
Tells a plugin that it is no longer needed.final Workspace
void
openDomainFile
(DomainFile domainFile) void
readDataState
(SaveState saveState) Tells the Plugin to read its data-dependent state from the given SaveState object.void
Removes the specified listener from the front-end tool.void
viewedProjectAdded
(URL projectView) Provides notification that a read-only viewed project has been added which is intended to be visible.void
viewedProjectRemoved
(URL projectView) Provides notification that a viewed project is being removed from the project.void
writeDataState
(SaveState saveState) Tells the Plugin to write any data-dependent state to the output stream.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, init, internalRegisterEventConsumed, isDisposed, prepareToSave, processEvent, readConfigState, registerDynamicServiceProvided, registerServiceProvided, restoreTransientState, restoreUndoRedoState, saveData, serviceAdded, serviceRemoved, writeConfigState
-
Field Details
-
openActions
-
-
Constructor Details
-
FrontEndPlugin
Construct a new FrontEndPlugin. This plugin is constructed once when the Front end tool (Ghidra Project Window) is created. When a previously opened project is created, the Ghidra Project Window is restored to the state associated with that project.- Parameters:
tool
- the front end tool
-
-
Method Details
-
createToolSpecificOpenActions
protected void createToolSpecificOpenActions() -
getComponent
-
connectionStateChanged
Description copied from interface:RemoteAdapterListener
Callback notification indicating the remote object connection state has changed.- Specified by:
connectionStateChanged
in interfaceRemoteAdapterListener
- Parameters:
adapter
- remote interface adapter (e.g., RepositoryServerAdapter).
-
viewedProjectAdded
Description copied from interface:ProjectViewListener
Provides notification that a read-only viewed project has been added which is intended to be visible. Notification for hidden viewed projects will not be provided.- Specified by:
viewedProjectAdded
in interfaceProjectViewListener
- Parameters:
projectView
- project view URL
-
viewedProjectRemoved
Description copied from interface:ProjectViewListener
Provides notification that a viewed project is being removed from the project. Notification for hidden viewed project removal will not be provided.- Specified by:
viewedProjectRemoved
in interfaceProjectViewListener
- Parameters:
projectView
- project view URL
-
writeDataState
Description copied from class:Plugin
Tells the Plugin to write any data-dependent state to the output stream.- Overrides:
writeDataState
in classPlugin
- Parameters:
saveState
- object that holds primitives for state information
-
readDataState
Description copied from class:Plugin
Tells the Plugin to read its data-dependent state from the given SaveState object.- Overrides:
readDataState
in classPlugin
- Parameters:
saveState
- object that holds primitives for state information
-
getActiveWorkspace
-
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. -
addProjectListener
Description copied from interface:FrontEndService
Adds the specified listener to the front-end tool.- Specified by:
addProjectListener
in interfaceFrontEndService
- Parameters:
l
- the project listener
-
removeProjectListener
Description copied from interface:FrontEndService
Removes the specified listener from the front-end tool.- Specified by:
removeProjectListener
in interfaceFrontEndService
- Parameters:
l
- the project listener
-
openDomainFile
-