Extensions can implement this interface and then call IBurpExtenderCallbacks.registerContextMenuFactory() to register a factory for custom context menu items.
| 19 | * a factory for custom context menu items. |
| 20 | */ |
| 21 | public interface IContextMenuFactory |
| 22 | { |
| 23 | /** |
| 24 | * This method will be called by Burp when the user invokes a context menu |
| 25 | * anywhere within Burp. The factory can then provide any custom context |
| 26 | * menu items that should be displayed in the context menu, based on the |
| 27 | * details of the menu invocation. |
| 28 | * |
| 29 | * @param invocation An object that implements the |
| 30 | * <code>IContextMenuInvocation</code> interface, which the extension can |
| 31 | * query to obtain details of the context menu invocation. |
| 32 | * @return A list of custom menu items (which may include sub-menus, |
| 33 | * checkbox menu items, etc.) that should be displayed. Extensions may |
| 34 | * return |
| 35 | * <code>null</code> from this method, to indicate that no menu items are |
| 36 | * required. |
| 37 | */ |
| 38 | List<JMenuItem> createMenuItems(IContextMenuInvocation invocation); |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected