public class EncapsulateFieldsHandler extends java.lang.Object implements RefactoringActionHandler
| Constructor and Description |
|---|
EncapsulateFieldsHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected EncapsulateFieldsDialog |
createDialog(Project project,
PsiClass aClass,
java.util.HashSet<PsiField> preselectedFields) |
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)
if elements.length == 1 the expected value is either PsiClass or PsiField
if elements.length > 1 the expected values are PsiField objects only
|
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)
invoke 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 EncapsulateFieldsDialog createDialog(Project project, PsiClass aClass, java.util.HashSet<PsiField> preselectedFields)
public static java.lang.String getRefactoringName()