public class ExtractClassProcessor extends FixableUsagesRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REFACTORING_NAME |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
ExtractClassProcessor(PsiClass sourceClass,
java.util.List<? extends PsiField> fields,
java.util.List<? extends PsiMethod> methods,
java.util.List<? extends PsiClass> classes,
java.lang.String packageName,
MoveDestination moveDestination,
java.lang.String newClassName,
java.lang.String newVisibility,
boolean generateAccessors,
java.util.List<? extends MemberInfo> enumConstants,
boolean extractInnerClass) |
ExtractClassProcessor(PsiClass sourceClass,
java.util.List<? extends PsiField> fields,
java.util.List<? extends PsiMethod> methods,
java.util.List<? extends PsiClass> innerClasses,
java.lang.String newPackageName,
java.lang.String newClassName) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usageInfos) |
void |
findUsages(java.util.List<FixableUsageInfo> usages) |
protected java.lang.String |
getCommandName() |
PsiClass |
getCreatedClass() |
protected void |
performRefactoring(UsageInfo [] usageInfos)
Is called in a command and inside atomic action.
|
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
checkConflicts, findUsages
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public static final java.lang.String REFACTORING_NAME
public ExtractClassProcessor(PsiClass sourceClass, java.util.List<? extends PsiField> fields, java.util.List<? extends PsiMethod> methods, java.util.List<? extends PsiClass> innerClasses, java.lang.String newPackageName, java.lang.String newClassName)
public ExtractClassProcessor(PsiClass sourceClass, java.util.List<? extends PsiField> fields, java.util.List<? extends PsiMethod> methods, java.util.List<? extends PsiClass> classes, java.lang.String packageName, MoveDestination moveDestination, java.lang.String newClassName, java.lang.String newVisibility, boolean generateAccessors, java.util.List<? extends MemberInfo> enumConstants, boolean extractInnerClass)
public PsiClass getCreatedClass()
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usageInfos)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected void performRefactoring(UsageInfo [] usageInfos)
BaseRefactoringProcessor
performRefactoring
in class FixableUsagesRefactoringProcessor
public void findUsages(java.util.List<FixableUsageInfo> usages)
findUsages
in class FixableUsagesRefactoringProcessor