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
&& (targetPath.toFile().equals(new File(fileObjectPath)))) {
            errorTable.add(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0,
                    NLS.bind(DataTransferMessages.ImportOperation_targetSameAsSourceError, fileObjectPath), null));
            return;
        }
        InputStream contentStream = provider.getContents(fileObject);
        if (contentStream == null) {
            errorTable
                    .add(new Status(
                            IStatus.ERROR,
                            PlatformUI.PLUGIN_ID,
                            0,
                            NLS.bind(DataTransferMessages.ImportOperation_openStreamError, fileObjectPath),
                            null));
            return;
        }
        try {
            if (targetResource.exists()) {
				targetResource.setContents(contentStream,
                        IResource.KEEP_HISTORY, null);
            } else {
                if (createGroups || createLinks)
                    targetResource.createLink(new Path(provider
                                    .getFullPath(fileObject)), 0, null);
                else
                    targetResource.create(contentStream, false, null);
            }
            setResourceAttributes(targetResource, fileObject);
            if (provider instanceof TarLeveledStructureProvider) {
            	try {