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 (workspace.getRoot().exists(resourcePath)) {
            if (rejectedFiles.contains(resourcePath)) {
				return POLICY_SKIP_CHILDREN;
			}
            IFolder folder = workspace.getRoot().getFolder(resourcePath);
            if (createGroups || createLinks || folder.isGroup() || folder.isLinked()) {
                folder.delete(true, null);
            } else
                return POLICY_FORCE_OVERWRITE;
        }
        try {
            if (createGroups)
                workspace.getRoot().getFolder(resourcePath).createGroup(0, null);
            else if (createLinks) {
                workspace.getRoot().getFolder(resourcePath).createLink(
                        new Path(provider.getFullPath(folderObject)),
                        0, null);
                policy = POLICY_SKIP_CHILDREN;
            } else
                workspace.getRoot().getFolder(resourcePath).create(false, true, null);
        } catch (CoreException e) {
            errorTable.add(e.getStatus());
        }
        return policy;
    }
	/**
     * Imports the specified file system object recursively into the workspace.
     * If the import fails, adds a status object to the list to be returned by
     * <code>getStatus</code>.
     *