Method: Buby::MessageEditorTab.createNewInstance

Defined in:
lib/buby/message_editor_tab.rb

.createNewInstance(controller, editable) ⇒ IMessageEditorTab

This method is abstract.

subclass and call super

Burp will call this method once for each HTTP message editor, and the factory should provide a new instance of an IMessageEditorTab object.

Parameters:

  • controller (IMessageEditorController)

    An object which the new tab can query to retrieve details about the currently displayed message. This may be nil for extension-invoked message editors where the extension has not provided an editor controller.

  • editable (Boolean)

    Indicates whether the hosting editor is editable or read-only.

Returns:

  • (IMessageEditorTab)

    A new tab for use within the message editor.



21
22
23
# File 'lib/buby/message_editor_tab.rb', line 21

def self.createNewInstance controller, editable
  self.new controller, editable
end