Bug 296691 Change new Groups API to Virtual Resource API
If we decide that 'virtual' is the right naming for new resources concept, I will make the following changes. Add IResource#VIRTUAL flag to use in #create methods Add IResource#isVirtual indicating that a resource is virtual Remove IResource#isGroup Remove IFolder#createGroup
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java
* @param fileSystemObject the file system object to be imported
     * @param policy determines how the file system object and children are imported
	 * @throws CoreException 
     * @exception OperationCanceledException if canceled
     */
    void importRecursivelyFrom(Object fileSystemObject, int policy) throws CoreException {
        if (monitor.isCanceled()) {
			throw new OperationCanceledException();
		}
        if (!provider.isFolder(fileSystemObject)) {
            importFile(fileSystemObject, policy);
            return;
        }
        int childPolicy = importFolder(fileSystemObject, policy);
        if (childPolicy != POLICY_SKIP_CHILDREN) {
            Iterator children = provider.getChildren(fileSystemObject)
                    .iterator();
            while (children.hasNext()) {
				importRecursivelyFrom(children.next(), childPolicy);
			}
        }
    }
    /**
     * Queries the user whether the resource with the specified path should be
     * overwritten by a file system object that is being imported.
     * 
     * @param resourcePath the workspace path of the resource that needs to be overwritten
     * @return <code>true</code> to overwrite, <code>false</code> to not overwrite
     * @exception OperationCanceledException if canceled
     */