public class JavaPullUpHandler extends java.lang.Object implements RefactoringActionHandler, PullUpDialog.Callback, ElementsHandler, ContextAwareActionHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REFACTORING_NAME
Deprecated.
Use
getRefactoringName() instead |
| Constructor and Description |
|---|
JavaPullUpHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConflicts(PullUpDialog dialog) |
static java.lang.String |
getRefactoringName() |
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).
|
boolean |
isAvailableForQuickList(Editor editor,
PsiFile file,
DataContext dataContext)
Handlers could provide useful hints when they are actually not available, e.g.
|
boolean |
isEnabledOnElements(PsiElement[] elements) |
@Deprecated public static final java.lang.String REFACTORING_NAME
getRefactoringName() insteadpublic boolean isAvailableForQuickList(Editor editor, PsiFile file, DataContext dataContext)
ContextAwareActionHandlerisAvailableForQuickList in interface ContextAwareActionHandlerpublic void invoke(Project project, Editor editor, PsiFile file, DataContext dataContext)
RefactoringActionHandlerinvoke in interface RefactoringActionHandlerproject - 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)public void invoke(Project project, PsiElement [] elements, DataContext dataContext)
RefactoringActionHandlerinvoke in interface RefactoringActionHandlerproject - 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 boolean checkConflicts(PullUpDialog dialog)
checkConflicts in interface PullUpDialog.Callbackpublic boolean isEnabledOnElements(PsiElement[] elements)
isEnabledOnElements in interface ElementsHandlerpublic static java.lang.String getRefactoringName()