JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
	private void helper1(int startLine, int startColumn, int endLine, int endColumn, boolean replaceAll, boolean allowLoadtime, boolean qualifyReferencesWithConstantName, String constantName, String guessedConstantName) throws Exception{		ICompilationUnit cu= createCUfromTestFile(getPackageP(), true, true);		ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn);		ExtractConstantRefactoring ref= ExtractConstantRefactoring.create(cu, selection.getOffset(), selection.getLength(), 																									JavaPreferencesSettings.getCodeGenerationSettings());		RefactoringStatus preconditionResult= ref.checkInitialConditions(new NullProgressMonitor());		assertTrue("activation was supposed to be successful" + preconditionResult.toString(), preconditionResult.isOK());		if(!allowLoadtime)			assertTrue("The selected expression has been erroneously reported to contain references to non-static or non-final fields.", ref.selectionAllStaticFinal());						ref.setReplaceAllOccurrences(replaceAll);		ref.setQualifyReferencesWithDeclaringClassName(qualifyReferencesWithConstantName);		ref.setConstantName(constantName);		assertEquals("constant name incorrectly guessed", guessedConstantName, ref.guessConstantName());		RefactoringStatus checkInputResult= ref.checkFinalConditions(new NullProgressMonitor());		assertTrue("precondition was supposed to pass", 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());	}