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
new SubProgressMonitor(subMonitor,
													1));
							} else
								folder.createLink(createRelativePath(source.getLocationURI(), folder), 0,
								new SubProgressMonitor(subMonitor, 1));
						}
					} else
						source.copy(destinationPath, IResource.SHALLOW,
							new SubProgressMonitor(subMonitor, 1));
					}
					if (subMonitor.isCanceled()) {
						throw new OperationCanceledException();
					}
				}
			}
		}
	}
	/**
	 * Transform an absolute path URI to a relative path one (i.e. from
	 * "C:\foo\bar\file.txt" to "VAR\file.txt" granted that the relativeVariable
	 * is "VAR" and points to "C:\foo\bar\").
	 * 
	 * @param locationURI
	 * @return an URI that was made relative to a variable
	 */
	private URI createRelativePath(URI locationURI, IResource resource) {
		if (relativeVariable == null)
			return locationURI;
		IPath location = URIUtil.toPath(locationURI);
		IPath result;