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
* <code>getStatus</code>.
     *
     * @param filesToImport the list of file system objects to import
     *   (element type: <code>Object</code>)
	 * @throws CoreException 
     * @exception OperationCanceledException if canceled
     */
    void importFileSystemObjects(List filesToImport) throws CoreException {
        Iterator filesEnum = filesToImport.iterator();
        while (filesEnum.hasNext()) {
            Object fileSystemObject = filesEnum.next();
            if (source == null) {
                
                IPath sourcePath = new Path(provider
                        .getFullPath(fileSystemObject)).removeLastSegments(1);
                if (provider.isFolder(fileSystemObject) && sourcePath.isEmpty()) {
                    
                    
                    
                    errorTable.add(new Status(IStatus.INFO,
                            PlatformUI.PLUGIN_ID, 0, DataTransferMessages.ImportOperation_cannotCopy,
                            null));
                    continue;
                }
                source = sourcePath.toFile();
            }
            importRecursivelyFrom(fileSystemObject, POLICY_DEFAULT);
        }
    }
    /**