Class: Buby::ContextMenuFactory
- Includes:
- Java::Burp::IContextMenuFactory
- Defined in:
- lib/buby/context_menu_factory.rb
Overview
Extensions can implement this interface and then call IBurpExtenderCallbacks.registerContextMenuFactory()
to register a factory for custom context menu items.
Class Method Summary collapse
- .createMenuItems(invocation) ⇒ Array<JMenuItem> deprecated Deprecated.
Instance Method Summary collapse
-
#create_menu_items(invocation) ⇒ Array<JMenuItem>
This method will be called by Burp when the user invokes a context menu anywhere within Burp.
-
#createMenuItems(invocation) ⇒ Array<JMenuItem>
This method will be called by Burp when the user invokes a context menu anywhere within Burp.
Class Method Details
.createMenuItems(invocation) ⇒ Array<JMenuItem>
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. Implementations should call super
23 24 25 26 27 |
# File 'lib/buby/context_menu_factory.rb', line 23 def self.createMenuItems invocation pp [:got_create_menu_items, invocation] if $DEBUG Buby::Implants::ContextMenuInvocation.implant invocation nil end |
Instance Method Details
#create_menu_items(invocation) ⇒ Array<JMenuItem>
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.
60 61 62 |
# File 'lib/buby/context_menu_factory.rb', line 60 def invocation nil end |
#createMenuItems(invocation) ⇒ Array<JMenuItem>
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. This method calls create_menu_items after implanting the invocation class. Redefine to bypass this behavior
43 44 45 46 |
# File 'lib/buby/context_menu_factory.rb', line 43 def createMenuItems invocation pp [:got_create_menu_items, invocation] if $DEBUG Buby::Implants::ContextMenuInvocation.implant(invocation) end |