public interface RefactoringActionHandler
RefactoringActionHandler is a "one-shot" object: you should not
invoke it twice.
Use ContextAwareActionHandler to hide an action from popups but allow access by shortcut, main menu or find.
RefactoringActionHandlerFactory| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Project project,
Editor editor,
PsiFile file,
DataContext dataContext)
Invokes refactoring action from editor.
|
void |
invoke(Project project,
PsiElement [] elements,
DataContext dataContext)
Invokes refactoring action from elsewhere (not from editor).
|
void invoke(Project project, Editor editor, PsiFile file, DataContext dataContext)
project - the project in which the refactoring is invoked.editor - editor that refactoring is invoked infile - file should correspond to editordataContext - can be null for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext() instead of null)void invoke(Project project, PsiElement [] elements, DataContext dataContext)
project - the project in which the refactoring is invoked.elements - list of elements that refactoring should work on. Refactoring-dependent.dataContext - can be null for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext() instead of null)