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
if (!currentFolder.exists()) {
                if (createGroups)
                    ((IFolder) currentFolder).createGroup(0, null);
                else if (createLinks)
                    ((IFolder) currentFolder).createLink(path, 0, null);
                else
                    ((IFolder) currentFolder).create(false, true, null);
            }
        }
        return currentFolder;
    }
    /**
     * Creates the folders that appear in the specified resource path
     * assuming that the destinationContainer begins at the root. Do not create projects.
     *
     * @param path the relative path of the resource
     * @return the container resource coresponding to the given path
     * @exception CoreException if this method failed
     */
    private IContainer createFromRoot(IPath path) throws CoreException {
        int segmentCount = path.segmentCount();
         
        IContainer currentFolder = ((IWorkspaceRoot) destinationContainer)
                .getProject(path.segment(0));
        for (int i = 1; i < segmentCount; i++) {
            currentFolder = currentFolder.getFolder(new Path(path.segment(i)));
            if (!currentFolder.exists()) {
				((IFolder) currentFolder).create(false, true, null);
			}
        }