if (ASTNodes.getParent(fTempDeclaration, ASTNode.FOR_STATEMENT) != null){ ForStatement forStmt= (ForStatement)ASTNodes.getParent(fTempDeclaration, ASTNode.FOR_STATEMENT); for (Iterator iter= forStmt.initializers().iterator(); iter.hasNext();) { if (ASTNodes.isParent(fTempDeclaration, (Expression) iter.next())) return RefactoringStatus.createFatalErrorStatus("Cannot inline variables declared in the initializer list of a 'for' statement."); } }
	private RefactoringStatus checkSelection() throws JavaModelException {		fTempDeclaration= TempDeclarationFinder.findTempDeclaration(fCompilationUnitNode, fSelectionStart, fSelectionLength);				if (fTempDeclaration == null){			String message= RefactoringCoreMessages.getString("InlineTempRefactoring.select_temp");//$NON-NLS-1$			return CodeRefactoringUtil.checkMethodSyntaxErrors(fSelectionStart, fSelectionLength, fCompilationUnitNode, fCu, message);		}			if (fTempDeclaration.getParent() instanceof FieldDeclaration)			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("InlineTemRefactoring.error.message.fieldsCannotBeInlined")); //$NON-NLS-1$		if (fTempDeclaration.getParent() instanceof MethodDeclaration)			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("InlineTempRefactoring.method_parameter")); //$NON-NLS-1$				if (fTempDeclaration.getParent() instanceof CatchClause)			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("InlineTempRefactoring.exceptions_declared")); //$NON-NLS-1$				if (fTempDeclaration.getInitializer() == null){			String message= RefactoringCoreMessages.getFormattedString("InlineTempRefactoring.not_initialized", getTempName());//$NON-NLS-1$			return RefactoringStatus.createFatalErrorStatus(message);		}							return checkAssignments();	}