fRewriter= new ASTRewrite(fRoot);
	public RefactoringStatus checkActivation(IProgressMonitor pm) throws JavaModelException {		fVisibility= (fField.getFlags() & (Flags.AccPublic | Flags.AccProtected | Flags.AccPrivate));		RefactoringStatus result=  new RefactoringStatus();				fRoot= AST.parseCompilationUnit(fField.getCompilationUnit(), true);		ISourceRange sourceRange= fField.getNameRange();		ASTNode node= NodeFinder.perform(fRoot, sourceRange.getOffset(), sourceRange.getLength());		if (node == null) {			return mappingErrorFound(result, node);		}		fFieldDeclaration= (VariableDeclarationFragment)ASTNodes.getParent(node, VariableDeclarationFragment.class);		if (fFieldDeclaration == null) {			return mappingErrorFound(result, node);		}		if (fFieldDeclaration.resolveBinding() == null) {			if (!processCompilerError(result, node))				result.addFatalError(RefactoringCoreMessages.getString("SelfEncapsulateField.type_not_resolveable")); //$NON-NLS-1$			return result;		}		result.merge(Checks.validateModifiesFiles(new IFile[]{ResourceUtil.getFile(fField.getCompilationUnit())}));		if (result.hasFatalError())			return result;		computeUsedNames();		return result;	}