mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
added domain object listener for function remove events
This commit is contained in:
parent
02df944b0e
commit
a682ef31ea
52 changed files with 4184 additions and 2210 deletions
|
@ -17,7 +17,7 @@ package ghidra.app.decompiler.component;
|
|||
|
||||
import docking.ActionContext;
|
||||
import docking.widgets.fieldpanel.internal.FieldPanelCoordinator;
|
||||
import ghidra.app.plugin.core.functioncompare.AbstractApplyFunctionSignatureAction;
|
||||
import ghidra.app.plugin.core.functioncompare.actions.AbstractApplyFunctionSignatureAction;
|
||||
import ghidra.app.util.viewer.util.CodeComparisonPanel;
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,7 @@ import ghidra.program.util.ProgramLocation;
|
|||
import ghidra.util.HTMLUtilities;
|
||||
|
||||
/**
|
||||
* Panel that displays two decompilers for comparison.
|
||||
* Panel that displays two decompilers for comparison
|
||||
*/
|
||||
public abstract class DecompilerCodeComparisonPanel<T extends DualDecompilerFieldPanelCoordinator>
|
||||
extends CodeComparisonPanel<DualDecompilerFieldPanelCoordinator> {
|
||||
|
@ -68,7 +68,8 @@ public abstract class DecompilerCodeComparisonPanel<T extends DualDecompilerFiel
|
|||
private ProgramLocationListener rightDecompilerLocationListener;
|
||||
|
||||
/**
|
||||
* Creates a comparison panel with two decompilers.
|
||||
* Creates a comparison panel with two decompilers
|
||||
*
|
||||
* @param owner the owner of this panel
|
||||
* @param tool the tool displaying this panel
|
||||
*/
|
||||
|
@ -189,7 +190,13 @@ public abstract class DecompilerCodeComparisonPanel<T extends DualDecompilerFiel
|
|||
|
||||
loadLeftFunction(leftFunction);
|
||||
loadRightFunction(rightFunction);
|
||||
setTitles(leftFunction, rightFunction);
|
||||
|
||||
if (getShowTitles()) {
|
||||
setTitles(leftFunction, rightFunction);
|
||||
}
|
||||
else {
|
||||
setTitles("", "");
|
||||
}
|
||||
if (dualDecompilerCoordinator != null) {
|
||||
dualDecompilerCoordinator.leftLocationChanged((ProgramLocation) null);
|
||||
}
|
||||
|
@ -429,6 +436,9 @@ public abstract class DecompilerCodeComparisonPanel<T extends DualDecompilerFiel
|
|||
setDualPanelFocus(i);
|
||||
}
|
||||
}
|
||||
|
||||
// Kick the tool so action buttons will be updated
|
||||
tool.getActiveComponentProvider().contextChanged();
|
||||
}
|
||||
|
||||
private void setDualPanelFocus(int leftOrRight) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue