burp
Interface IContextMenuFactory
public interface IContextMenuFactory
Extensions can implement this interface and then call
IBurpExtenderCallbacks.registerContextMenuFactory()
to register
a factory for custom context menu items.
Method Summary |
java.util.List<javax.swing.JMenuItem> |
createMenuItems(IContextMenuInvocation invocation)
This method will be called by Burp when the user invokes a context menu
anywhere within Burp. |
createMenuItems
java.util.List<javax.swing.JMenuItem> createMenuItems(IContextMenuInvocation invocation)
- This method will be called by Burp when the user invokes a context menu
anywhere within Burp. The factory can then provide any custom context
menu items that should be displayed in the context menu, based on the
details of the menu invocation.
- Parameters:
invocation
- An object that implements the
IContextMenuInvocation
interface, which the extension can
query to obtain details of the context menu invocation.
- Returns:
- A list of custom menu items (which may include sub-menus,
checkbox menu items, etc.) that should be displayed. Extensions may
return
null
from this method, to indicate that no menu items are
required.