use of org.eclipse.jdt.internal.corext.refactoring.rename.RenameAnalyzeUtil.LocalAnalyzePackage in project che by eclipse.
the class RenameLocalVariableProcessor method doCheckFinalConditions.
@Override
protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException, OperationCanceledException {
try {
initAST();
initNames();
//$NON-NLS-1$
pm.beginTask("", 1);
RefactoringStatus result = checkNewElementName(fNewName);
if (result.hasFatalError())
return result;
createEdits();
if (!fIsComposite) {
LocalAnalyzePackage[] localAnalyzePackages = new RenameAnalyzeUtil.LocalAnalyzePackage[] { fLocalAnalyzePackage };
result.merge(RenameAnalyzeUtil.analyzeLocalRenames(localAnalyzePackages, fChange, fCompilationUnitNode, true));
}
return result;
} finally {
pm.done();
if (fIsComposite) {
// end of life cycle for this processor
fChange = null;
fCompilationUnitNode = null;
fTempDeclarationNode = null;
}
}
}
Aggregations