fCopyRefactoring2= CopyRefactoring.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());
IJavaProject project= null; if (javaElements != null && javaElements.length > 0) project= javaElements[0].getJavaProject(); fCopyRefactoring2= CopyRefactoring.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings(project));
	private int handleValidateCopy(Object target, DropTargetEvent event) throws JavaModelException{		if (fCopyRefactoring2 == null) {			IResource[] resources= ReorgUtils.getResources(fElements);			IJavaElement[] javaElements= ReorgUtils.getJavaElements(fElements);			fCopyRefactoring2= CopyRefactoring.create(resources, javaElements, JavaPreferencesSettings.getCodeGenerationSettings());		}				if (!canCopyElements())			return DND.DROP_NONE;			if (target instanceof IResource && fCopyRefactoring2 != null && fCopyRefactoring2.setDestination((IResource)target).isOK())			return DND.DROP_COPY;		else if (target instanceof IJavaElement && fCopyRefactoring2 != null && fCopyRefactoring2.setDestination((IJavaElement)target).isOK())			return DND.DROP_COPY;		else			return DND.DROP_NONE;						}