Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 16500

Summary: [DND] Refactor CopyResourceAction and CopyFilesAndFoldersOperation
Product: [Eclipse Project] Platform Reporter: Knut Radloff <knut_radloff>
Component: UIAssignee: Knut Radloff <knut_radloff>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 19905    

Description Knut Radloff CLA 2002-05-20 19:16:27 EDT
build 20020519

CopyResourceAction and CopyFilesAndFoldersOperation in org.eclipse.ui.actions 
have a lot of common code. This should be refactored to avoid duplication.
See also bug 15894.
Comment 1 Knut Radloff CLA 2002-08-12 09:28:01 EDT
The refactoring is related to bug 19905 and the copy/move via clipboard vs. dnd 
cleanup I'm working on.
Comment 2 Knut Radloff CLA 2002-08-19 16:21:55 EDT
Fixed in build > 20020819.
CopyResourceAction (copy/paste) now uses CopyFilesAndFoldersOperation. 
Created subclass MoveFilesAndFoldersOperation. MoveResourceAction (context menu 
item Move) now uses MoveFilesAndFoldersOperation.
NavigatorDropAdapter uses CopyFilesAndFoldersOperation for copy and for import 
from file system as well as MoveFilesAndFoldersOperation for move.
DND import from file system would ideally be moved to a separate operation. 
However, CopyFilesAndFoldersOperation makes this available as API.