CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
IJavaProject project= null; if (javaElements != null && javaElements.length > 0) project= javaElements[0].getJavaProject(); CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings(project);
	private CopyRefactoring verifyEnabled(IResource[] resources, IJavaElement[] javaElements, INewNameQueries newNameQueries, IReorgQueries reorgQueries) throws JavaModelException {		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();		assertTrue("copy should be enabled", CopyRefactoring.isAvailable(resources, javaElements, settings));		CopyRefactoring refactoring2= CopyRefactoring.create(resources, javaElements, settings);		assertNotNull(refactoring2);		if (newNameQueries != null)			refactoring2.setNewNameQueries(newNameQueries);		if (reorgQueries != null)			refactoring2.setReorgQueries(reorgQueries);		return refactoring2;	}