PromoteTempToFieldRefactoring ref= PromoteTempToFieldRefactoring.create(cu, selection.getOffset(), selection.getLength(), JavaPreferencesSettings.getCodeGenerationSettings());
PromoteTempToFieldRefactoring ref= PromoteTempToFieldRefactoring.create(cu, selection.getOffset(), selection.getLength(), JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
	public void test22() throws Exception{ //test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=54444		ICompilationUnit cu= createCUfromTestFile(getPackageP(), true, true);						  			ISourceRange selection= TextRangeUtil.getSelection(cu, 4, 34, 4, 37);        PromoteTempToFieldRefactoring ref= PromoteTempToFieldRefactoring.create(cu, selection.getOffset(), selection.getLength(), JavaPreferencesSettings.getCodeGenerationSettings());		ref.checkInitialConditions(new NullProgressMonitor());        assertEquals("sortByDefiningTypeAction", ref.getFieldName());	}