public class CopyHandler extends EditorActionHandler implements CopyAction.TransferableProvider
Constructor and Description |
---|
CopyHandler(EditorActionHandler originalHandler) |
Modifier and Type | Method and Description |
---|---|
void |
doExecute(Editor editor,
Caret caret,
DataContext dataContext)
Executes the action in the context of given caret.
|
java.awt.datatransfer.Transferable |
getSelection(Editor editor) |
execute, execute, executeInCommand, getCommandGroupId, isEnabled, isEnabled, isEnabledForCaret, runForAllCarets
public CopyHandler(EditorActionHandler originalHandler)
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 java.awt.datatransfer.Transferable getSelection(Editor editor)
getSelection
in interface CopyAction.TransferableProvider