JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());
JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings(p1A.getJavaProject()));
	public void test3() throws Exception{		ParticipantTesting.reset();		IPackageFragment packP1= null;		IPackageFragment packP3= null;		IPackageFragment packP2= null;		try {			final String p1Name= "p1";			final String p3Name= "p3";			final String inDir= "/in/";			final String outDir= "/out/";			packP1= createPackage(p1Name);			packP3= createPackage(p3Name);			ICompilationUnit p1A= createCu(packP1, getName() + inDir + p1Name + "/Outer.java", "Outer.java");			createCu(packP3, getName() + inDir + p3Name + "/Test.java", "Test.java");			String p2Name= "p2";			packP2= createPackage(p2Name);			String[] handles= ParticipantTesting.createHandles(new Object[] {				p1A, p1A.getTypes()[0], 				p1A.getResource()});			IResource[] resources= {};			IJavaElement[] javaElements= {p1A};			JavaMoveProcessor processor= JavaMoveProcessor.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());			processor.setReorgQueries(new MockReorgQueries());			processor.setDestination(packP2);			processor.setUpdateReferences(true);		    performDummySearch();			RefactoringStatus status= performRefactoring(processor, false);			//-- checks			assertEquals("status should be ok here", null, status);			assertEquals("p1 files", 0, packP1.getChildren().length);			assertEquals("p2 files", 1, packP2.getChildren().length);			assertEquals("p1 files", 1, packP3.getChildren().length);			String expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p2Name + "/Outer.java");			assertEqualLines("incorrect update of Outer", expectedSource, packP2.getCompilationUnit("Outer.java").getSource());			expectedSource= getFileContents(getRefactoringPath() + getName() + outDir + p3Name + "/Test.java");			assertEqualLines("incorrect update of Test", expectedSource, packP3.getCompilationUnit("Test.java").getSource());			ParticipantTesting.testMove(				handles,				new MoveArguments[] {					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2, processor.getUpdateReferences()),					new MoveArguments(packP2.getResource(), processor.getUpdateReferences()),				});		} finally {			delete(packP1);			delete(packP2);			delete(packP3);				}	}