public class ExtractMethodObjectProcessor extends BaseRefactoringProcessor
Modifier and Type | Class and Description |
---|---|
class |
ExtractMethodObjectProcessor.MyExtractMethodProcessor |
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
protected ExtractMethodObjectProcessor.MyExtractMethodProcessor |
myExtractProcessor |
static java.lang.String |
REFACTORING_NAME |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
ExtractMethodObjectProcessor(Project project,
Editor editor,
PsiElement[] elements,
java.lang.String innerClassName) |
Modifier and Type | Method and Description |
---|---|
protected PsiElement |
addInnerClass(PsiClass containingClass,
PsiClass innerClass) |
protected void |
changeInstanceAccess(Project project) |
protected AbstractExtractDialog |
createExtractMethodObjectDialog(ExtractMethodObjectProcessor.MyExtractMethodProcessor processor) |
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
ExtractMethodObjectProcessor.MyExtractMethodProcessor |
getExtractProcessor() |
PsiClass |
getInnerClass() |
java.lang.String |
getInnerClassName() |
PsiMethod |
getMethod() |
boolean |
isCreateInnerClass() |
protected boolean |
isFoldingApplicable() |
void |
performRefactoring(UsageInfo [] usages)
Is called in a command and inside atomic action.
|
PsiExpression |
processMethodDeclaration(PsiExpressionList expressionList) |
void |
setCreateInnerClass(boolean createInnerClass) |
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, preprocessUsages, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public static final java.lang.String REFACTORING_NAME
protected final ExtractMethodObjectProcessor.MyExtractMethodProcessor myExtractProcessor
public ExtractMethodObjectProcessor(Project project, Editor editor, PsiElement[] elements, java.lang.String innerClassName)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
public void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
public PsiExpression processMethodDeclaration(PsiExpressionList expressionList) throws IncorrectOperationException
IncorrectOperationException
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected void changeInstanceAccess(Project project) throws IncorrectOperationException
IncorrectOperationException
public PsiMethod getMethod()
public java.lang.String getInnerClassName()
public void setCreateInnerClass(boolean createInnerClass)
public boolean isCreateInnerClass()
public ExtractMethodObjectProcessor.MyExtractMethodProcessor getExtractProcessor()
protected AbstractExtractDialog createExtractMethodObjectDialog(ExtractMethodObjectProcessor.MyExtractMethodProcessor processor)
protected PsiElement addInnerClass(PsiClass containingClass, PsiClass innerClass)
public PsiClass getInnerClass()
protected boolean isFoldingApplicable()