Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 310277
Collapse All | Expand All

(-)src/org/eclipse/ui/views/navigator/NavigatorDropAdapter.java (-5 / +3 lines)
Lines 254-260 Link Here
254
            result = NavigatorDropAdapter.super.performDrop(data);
254
            result = NavigatorDropAdapter.super.performDrop(data);
255
        }
255
        }
256
        if (resources != null && resources.length > 0) {
256
        if (resources != null && resources.length > 0) {
257
            if ((getCurrentOperation() == DND.DROP_COPY) || (getCurrentOperation() == DND.DROP_LINK)) {
257
            if (getCurrentOperation() == DND.DROP_COPY) {
258
				status = performResourceCopy(getShell(), resources);
258
				status = performResourceCopy(getShell(), resources);
259
			} else {
259
			} else {
260
				status = performResourceMove(resources);
260
				status = performResourceMove(resources);
Lines 432-440 Link Here
432
            lastValidOperation = dragOperation;
432
            lastValidOperation = dragOperation;
433
        }
433
        }
434
        if (FileTransfer.getInstance().isSupportedType(transferType)
434
        if (FileTransfer.getInstance().isSupportedType(transferType)
435
                && (lastValidOperation != DND.DROP_COPY)
435
                && (lastValidOperation != DND.DROP_COPY)) {
436
                && (lastValidOperation != DND.DROP_MOVE)
437
                && (lastValidOperation != DND.DROP_LINK)) {
438
            return false;
436
            return false;
439
        }
437
        }
440
        if (super.validateDrop(target, dragOperation, transferType)) {
438
        if (super.validateDrop(target, dragOperation, transferType)) {
Lines 467-473 Link Here
467
				message = ResourceNavigatorMessages.DropAdapter_dropOperationErrorOther;
465
				message = ResourceNavigatorMessages.DropAdapter_dropOperationErrorOther;
468
			} else {
466
			} else {
469
                CopyFilesAndFoldersOperation operation;
467
                CopyFilesAndFoldersOperation operation;
470
                if ((lastValidOperation == DND.DROP_COPY) || (lastValidOperation == DND.DROP_LINK)) {
468
                if (lastValidOperation == DND.DROP_COPY) {
471
                    operation = new CopyFilesAndFoldersOperation(getShell());
469
                    operation = new CopyFilesAndFoldersOperation(getShell());
472
					if (operation.validateDestination(destination, selectedResources) != null) {
470
					if (operation.validateDestination(destination, selectedResources) != null) {
473
						operation.setVirtualFolders(true);
471
						operation.setVirtualFolders(true);

Return to bug 310277