public interface ITextEditor
IBurpExtenderCallbacks.createTextEditor()
to obtain an instance
of this interface.Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
This method returns the UI component of the editor, for extensions to add
to their own UI.
|
byte[] |
getSelectedText()
This method is used to obtain the currently selected text.
|
int[] |
getSelectionBounds()
This method can be used to retrieve the bounds of the user's selection
into the displayed text, if applicable.
|
byte[] |
getText()
This method is used to retrieve the currently displayed text.
|
boolean |
isTextModified()
This method is used to determine whether the user has modified the
contents of the editor.
|
void |
setEditable(boolean editable)
This method is used to control whether the editor is currently editable.
|
void |
setSearchExpression(java.lang.String expression)
This method is used to update the search expression that is shown in the
search bar below the editor.
|
void |
setText(byte[] text)
This method is used to update the currently displayed text in the editor.
|
java.awt.Component getComponent()
void setEditable(boolean editable)
editable
- Indicates whether the editor should be currently
editable.void setText(byte[] text)
text
- The text to be displayed.byte[] getText()
boolean isTextModified()
setText()
.byte[] getSelectedText()
null
if the user has not made any selection.int[] getSelectionBounds()
void setSearchExpression(java.lang.String expression)
expression
- The search expression.