public abstract class ClassRefactoringHandlerBase extends java.lang.Object implements RefactoringActionHandler, ElementsHandler
| Constructor and Description |
|---|
ClassRefactoringHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
acceptsElement(PsiElement element) |
protected abstract java.lang.String |
getHelpId() |
protected abstract java.lang.String |
getInvalidPositionMessage() |
protected abstract java.lang.String |
getTitle() |
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 |
isEnabledOnElements(PsiElement[] elements) |
protected static void |
navigate(PsiElement element) |
protected abstract void |
showDialog(Project project,
PsiElement element,
Editor editor,
PsiFile file,
DataContext dataContext) |
public boolean isEnabledOnElements(PsiElement[] elements)
isEnabledOnElements in interface ElementsHandlerprotected static void navigate(PsiElement element)
public 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)protected abstract boolean acceptsElement(PsiElement element)
protected abstract void showDialog(Project project, PsiElement element, Editor editor, PsiFile file, DataContext dataContext)
protected abstract java.lang.String getHelpId()
protected abstract java.lang.String getTitle()
protected abstract java.lang.String getInvalidPositionMessage()