JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
	void namesHelper(String factoryMethodName)		throws Exception	{		ICompilationUnit	cu= createCUForSimpleTest(getPackageP(), true, true);		ISourceRange		selection= findSelectionInSource(cu.getSource());		IntroduceFactoryRefactoring	ref= IntroduceFactoryRefactoring.create(cu, selection.getOffset(), selection.getLength(), 												   JavaPreferencesSettings.getCodeGenerationSettings());		RefactoringStatus	activationResult= ref.checkInitialConditions(new NullProgressMonitor());			assertTrue("activation was supposed to be successful", activationResult.isOK());																		ref.setNewMethodName(factoryMethodName);		RefactoringStatus	checkInputResult= ref.checkFinalConditions(new NullProgressMonitor());		assertTrue("precondition was supposed to pass but was " + checkInputResult.toString(), checkInputResult.isOK());		performChange(ref, false);		String newSource = cu.getSource();		assertEqualLines(getName() + ": ", getFileContents(getTestFileName(true, false)), newSource);	}