mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
GP-4060 disable compare matching callees action in VT
This commit is contained in:
+3
@@ -49,11 +49,14 @@ public class CompareFuncsFromMatchedTokensAction extends AbstractMatchedTokensAc
|
|||||||
PluginTool tool) {
|
PluginTool tool) {
|
||||||
super(ACTION_NAME, tool.getName(), diffPanel, false);
|
super(ACTION_NAME, tool.getName(), diffPanel, false);
|
||||||
this.tool = tool;
|
this.tool = tool;
|
||||||
|
FunctionComparisonService service = tool.getService(FunctionComparisonService.class);
|
||||||
|
if (service != null) {
|
||||||
MenuData menuData = new MenuData(new String[] { ACTION_NAME }, null, MENU_GROUP);
|
MenuData menuData = new MenuData(new String[] { ACTION_NAME }, null, MENU_GROUP);
|
||||||
setPopupMenuData(menuData);
|
setPopupMenuData(menuData);
|
||||||
setEnabled(true);
|
setEnabled(true);
|
||||||
setHelpLocation(new HelpLocation(HELP_TOPIC, "Compare Matching Callees"));
|
setHelpLocation(new HelpLocation(HELP_TOPIC, "Compare Matching Callees"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean enabledForTokens(TokenPair tokenPair) {
|
protected boolean enabledForTokens(TokenPair tokenPair) {
|
||||||
|
|||||||
Reference in New Issue
Block a user