Package ghidra.app.decompiler.component
Class DecompilerProgramListener
java.lang.Object
ghidra.app.decompiler.component.DecompilerProgramListener
- All Implemented Interfaces:
DomainObjectListener
,EventListener
Listener of
Program
events for decompiler panels. Program events are buffered using
a SwingUpdateManager
before triggering a new decompile process.-
Constructor Summary
ConstructorDescriptionDecompilerProgramListener
(DecompilerController controller, SwingUpdateManager updater) Construct a listener with a SwingUpdateManger that should be kicked for every program change.DecompilerProgramListener
(DecompilerController controller, Runnable callback) Construct a listener with a callback to be called when a decompile should occur. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
Method called when a change is made to the domain object.
-
Constructor Details
-
DecompilerProgramListener
Construct a listener with a callback to be called when a decompile should occur. Program events are buffered using SwingUpdateManager before the callback is called.- Parameters:
controller
- the DecompilerControllercallback
- the callback for when the decompile should be refreshed.
-
DecompilerProgramListener
Construct a listener with a SwingUpdateManger that should be kicked for every program change.- Parameters:
controller
- the DecompilerControllerupdater
- A SwingUpdateManger to be kicked as program events are received which will eventually trigger a decompile refresh.
-
-
Method Details
-
domainObjectChanged
Description copied from interface:DomainObjectListener
Method called when a change is made to the domain object.- Specified by:
domainObjectChanged
in interfaceDomainObjectListener
- Parameters:
ev
- event containing the change record and type of change that was made
-
dispose
public void dispose()
-