Refactoring renameTempRefactoring= createRefactoring(getCompilationUnit(), (ITextSelection)selection);
Refactoring renameTempRefactoring= createRefactoring(getCompilationUnit(), selection);
	public boolean canRun(ITextSelection selection) {		selectionChanged(selection);		if (! isEnabled())			return false;				if (getCompilationUnit() == null)			return false;			Refactoring renameTempRefactoring= createRefactoring(getCompilationUnit(), (ITextSelection)selection);		if (renameTempRefactoring == null)			return false;		try {			return (renameTempRefactoring.checkActivation(new NullProgressMonitor()).isOK());		} catch(JavaModelException e) {			ExceptionHandler.handle(e, RefactoringMessages.getString("RenameTempAction.rename_Local_Variable"), RefactoringMessages.getString("RenameTempAction.exception"));//$NON-NLS-1$ //$NON-NLS-2$			return false;		}	}