public class SafeDeleteHandler extends java.lang.Object implements RefactoringActionHandler
Constructor and Description |
---|
SafeDeleteHandler() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getRefactoringName() |
void |
invoke(Project project,
Editor editor,
PsiFile file,
DataContext dataContext)
Invokes refactoring action from editor.
|
static void |
invoke(Project project,
PsiElement[] elements,
boolean checkDelegates) |
static void |
invoke(Project project,
PsiElement[] elements,
boolean checkDelegates,
java.lang.Runnable successRunnable) |
void |
invoke(Project project,
PsiElement [] elements,
DataContext dataContext)
Invokes refactoring action from elsewhere (not from editor).
|
static void |
invoke(Project project,
PsiElement[] elements,
Module module,
boolean checkDelegates,
java.lang.Runnable successRunnable) |
static void |
invoke(Project project,
PsiElement[] elements,
Module module,
boolean checkDelegates,
java.lang.Runnable successRunnable,
java.lang.Runnable afterRefactoring) |
static void |
invoke(Project project,
PsiElement[] elements,
Module module,
boolean checkDelegates,
java.lang.Runnable successRunnable,
java.lang.Runnable afterRefactoring,
boolean silent) |
public void invoke(Project project, Editor editor, PsiFile file, DataContext dataContext)
RefactoringActionHandler
invoke
in interface RefactoringActionHandler
project
- the project in which the refactoring is invoked.editor
- editor that refactoring is invoked infile
- file should correspond to editor
dataContext
- can be null
for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext()
instead of null
)public void invoke(Project project, PsiElement [] elements, DataContext dataContext)
RefactoringActionHandler
invoke
in interface RefactoringActionHandler
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
)public static void invoke(Project project, PsiElement[] elements, boolean checkDelegates)
public static void invoke(Project project, PsiElement[] elements, boolean checkDelegates, java.lang.Runnable successRunnable)
public static void invoke(Project project, PsiElement[] elements, Module module, boolean checkDelegates, java.lang.Runnable successRunnable)
public static void invoke(Project project, PsiElement[] elements, Module module, boolean checkDelegates, java.lang.Runnable successRunnable, java.lang.Runnable afterRefactoring)
public static void invoke(Project project, PsiElement[] elements, Module module, boolean checkDelegates, java.lang.Runnable successRunnable, java.lang.Runnable afterRefactoring, boolean silent)
public static java.lang.String getRefactoringName()