public class PasteHandler extends EditorActionHandler implements EditorTextInsertHandler
Constructor and Description |
---|
PasteHandler(EditorActionHandler originalAction) |
Modifier and Type | Method and Description |
---|---|
void |
doExecute(Editor editor,
Caret caret,
DataContext dataContext)
Executes the action in the context of given caret.
|
void |
execute(Editor editor,
DataContext dataContext,
Producer<java.awt.datatransfer.Transferable> producer) |
execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, isEnabledForCaret, runForAllCarets
public PasteHandler(EditorActionHandler originalAction)
public void doExecute(Editor editor, Caret caret, DataContext dataContext)
EditorActionHandler
doExecute
in class EditorActionHandler
editor
- the editor in which the action is invoked.caret
- the caret for which the action is performed at the moment, or null
if it's a 'one-off' action executed
without current contextdataContext
- the data context for the action.public void execute(Editor editor, DataContext dataContext, Producer<java.awt.datatransfer.Transferable> producer)
execute
in interface EditorTextInsertHandler