GP-4060 disable compare matching callees action in VT

This commit is contained in:
James
2023-12-05 19:42:12 +00:00
parent fda9c1f35e
commit 0656739ccd
@@ -49,10 +49,13 @@ 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;
MenuData menuData = new MenuData(new String[] { ACTION_NAME }, null, MENU_GROUP); FunctionComparisonService service = tool.getService(FunctionComparisonService.class);
setPopupMenuData(menuData); if (service != null) {
setEnabled(true); MenuData menuData = new MenuData(new String[] { ACTION_NAME }, null, MENU_GROUP);
setHelpLocation(new HelpLocation(HELP_TOPIC, "Compare Matching Callees")); setPopupMenuData(menuData);
setEnabled(true);
setHelpLocation(new HelpLocation(HELP_TOPIC, "Compare Matching Callees"));
}
} }
@Override @Override