Bug 310494 [LinkedResources] Preference "Link and create virtual folders" does not work
I20100425-2000 The 2 options on the Linked Resourced with name "Link and create virtual folders" don't work. When they are selected, dropping items does nothing. In CopyFilesAndFoldersOperation#copyOrLinkFiles(..), the test "hasFlag(dropOperation, ImportTypeDialog.IMPORT_VIRTUAL_FOLDERS_AND_LINKS)" always fails because dropOperation is always COPY.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
default:
			return false;
		}
	}
	/**
	 * Returns whether any of the given source resources are being recopied to
	 * their current container.
	 * 
	 * @param sourceResources
	 *            the source resources
	 * @param destination
	 *            the destination container
	 * @return <code>true</code> if at least one of the given source
	 *         resource's parent container is the same as the destination
	 */
	boolean isDestinationSameAsSource(IResource[] sourceResources,
			IContainer destination) {
		IPath destinationLocation = destination.getLocation();
		for (int i = 0; i < sourceResources.length; i++) {
			IResource sourceResource = sourceResources[i];
			if (sourceResource.getParent().equals(destination)) {
				return true;
			} else if (destinationLocation != null) {
				
				IPath sourceLocation = sourceResource.getLocation();
				IPath destinationResource = destinationLocation
						.append(sourceResource.getName());
				if (sourceLocation != null
						&& sourceLocation.isPrefixOf(destinationResource)) {
					return true;