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
FieldsFields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified listener to the front-end tool.voidconnectionStateChanged(Object adapter) Callback notification indicating the remote object connection state has changed.protected voidprotected voiddispose()Tells a plugin that it is no longer needed.final WorkspacevoidopenDomainFile(DomainFile domainFile) voidreadDataState(SaveState saveState) Tells the Plugin to read its data-dependent state from the given SaveState object.voidRemoves the specified listener from the front-end tool.voidviewedProjectAdded(URL projectView) Provides notification that a read-only viewed project has been added which is intended to be visible.voidviewedProjectRemoved(URL projectView) Provides notification that a viewed project is being removed from the project.voidwriteDataState(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:RemoteAdapterListenerCallback notification indicating the remote object connection state has changed.- Specified by:
connectionStateChangedin interfaceRemoteAdapterListener- Parameters:
adapter- remote interface adapter (e.g., RepositoryServerAdapter).
-
viewedProjectAdded
Description copied from interface:ProjectViewListenerProvides 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:
viewedProjectAddedin interfaceProjectViewListener- Parameters:
projectView- project view URL
-
viewedProjectRemoved
Description copied from interface:ProjectViewListenerProvides notification that a viewed project is being removed from the project. Notification for hidden viewed project removal will not be provided.- Specified by:
viewedProjectRemovedin interfaceProjectViewListener- Parameters:
projectView- project view URL
-
writeDataState
Description copied from class:PluginTells the Plugin to write any data-dependent state to the output stream.- Overrides:
writeDataStatein classPlugin- Parameters:
saveState- object that holds primitives for state information
-
readDataState
Description copied from class:PluginTells the Plugin to read its data-dependent state from the given SaveState object.- Overrides:
readDataStatein classPlugin- Parameters:
saveState- object that holds primitives for state information
-
getActiveWorkspace
-
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. -
addProjectListener
Description copied from interface:FrontEndServiceAdds the specified listener to the front-end tool.- Specified by:
addProjectListenerin interfaceFrontEndService- Parameters:
l- the project listener
-
removeProjectListener
Description copied from interface:FrontEndServiceRemoves the specified listener from the front-end tool.- Specified by:
removeProjectListenerin interfaceFrontEndService- Parameters:
l- the project listener
-
openDomainFile
-