pm.beginTask("", 8);
pm.beginTask("", 7);
	private RefactoringStatus checkSelection(IProgressMonitor pm) throws JavaModelException {		try{			pm.beginTask("", 8); //$NON-NLS-1$				Expression selectedExpression= getSelectedExpression();						if (selectedExpression == null){				String message= RefactoringCoreMessages.getString("ExtractTempRefactoring.select_expression");//$NON-NLS-1$				return CodeRefactoringUtil.checkMethodSyntaxErrors(fSelectionStart, fSelectionLength, fCompilationUnitNode, message);			}				pm.worked(1);						if(selectionIncludesExtraneousText())				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.extraneous_text_selected")); //$NON-NLS-1$			pm.worked(1);						if (isUsedInExplicitConstructorCall())				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.explicit_constructor")); //$NON-NLS-1$			pm.worked(1);										if (getSelectedMethodNode() == null)				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.expression_in_method"));			 //$NON-NLS-1$			pm.worked(1);										if (selectedExpression instanceof Name && selectedExpression.getParent() instanceof ClassInstanceCreation)				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.name_in_new")); //$NON-NLS-1$			pm.worked(1);										RefactoringStatus result= new RefactoringStatus();			result.merge(checkExpression());			if (result.hasFatalError())				return result;			pm.worked(1);						result.merge(checkExpressionBinding());							if (result.hasFatalError())				return result;							pm.worked(1);						return result;		} finally{			pm.done();		}			}