JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
	private void helper1(int startLine, int startColumn, int endLine, int endColumn, boolean replaceAll, boolean makeFinal, String tempName, String guessedTempName) throws Exception{		ICompilationUnit cu= createCUfromTestFile(getPackageP(), true, true);		ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn);		ExtractTempRefactoring ref= ExtractTempRefactoring.create(cu, selection.getOffset(), selection.getLength(), 		                                                       JavaPreferencesSettings.getCodeGenerationSettings());																		RefactoringStatus activationResult= ref.checkInitialConditions(new NullProgressMonitor());			assertTrue("activation was supposed to be successful", activationResult.isOK());																																											ref.setReplaceAllOccurrences(replaceAll);		ref.setDeclareFinal(makeFinal);		ref.setTempName(tempName);		assertEquals("temp name incorrectly guessed", guessedTempName, ref.guessTempName());		RefactoringStatus checkInputResult= ref.checkFinalConditions(new NullProgressMonitor());		assertTrue("precondition was supposed to pass but was " + checkInputResult.toString(), checkInputResult.isOK());			performChange(ref, false);				IPackageFragment pack= (IPackageFragment)cu.getParent();		String newCuName= getSimpleTestFileName(true, true);		ICompilationUnit newcu= pack.getCompilationUnit(newCuName);		assertTrue(newCuName + " does not exist", newcu.exists());		assertEqualLines(getFileContents(getTestFileName(true, false)), newcu.getSource());	}