MCPcopy Index your code
hub / github.com/API-Security/APIKit / createMenuItems

Method createMenuItems

src/main/java/burp/ContextMenu.java:23–34  ·  view source on GitHub ↗
(IContextMenuInvocation invocation)

Source from the content-addressed store, hash-verified

21 }
22
23 @Override
24 public List<JMenuItem> createMenuItems(IContextMenuInvocation invocation) {
25 if (availableToolFlag.contains(invocation.getInvocationContext())) {
26 ArrayList<JMenuItem> menuItemList = new ArrayList<>();
27 JMenuItem menuItem = new JMenuItem("Do API scan");
28 menuItem.addActionListener(new ContextMenuActionListener(invocation));
29 menuItemList.add(menuItem);
30 return menuItemList;
31 } else {
32 return null;
33 }
34 }
35
36 static class ContextMenuActionListener implements ActionListener {
37 IContextMenuInvocation invocation;

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected