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/views/navigator/NavigatorDropAdapter.java
getCurrentTransfer()));
        final IContainer target = getActualTarget((IResource) getCurrentTarget());
        final String[] names = (String[]) data;
         
         
        
        Display.getCurrent().asyncExec(new Runnable() {
            public void run() {
                getShell().forceActive();
                CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(
                        getShell());
				
				int type;
				int mask = ImportTypeDialog.IMPORT_GROUPS_AND_LINKS | ImportTypeDialog.IMPORT_LINK;
				if (!target.isGroup() && (getCurrentOperation() != DND.DROP_LINK))
					mask |= ImportTypeDialog.IMPORT_COPY;
				ImportTypeDialog dialog = new ImportTypeDialog(getShell(), mask);
				if (dialog.open() == Window.OK)
					type = dialog.getSelection();
				else
					type = ImportTypeDialog.IMPORT_NONE;
				switch(type) {
					case ImportTypeDialog.IMPORT_COPY:
						operation.copyFiles(names, target);
						break;
					case ImportTypeDialog.IMPORT_GROUPS_AND_LINKS:
						operation.createGroupAndLinks(names, target);
						break;
					case ImportTypeDialog.IMPORT_LINK:
						operation.linkFiles(names, target);