Eclipse Platform
2.0

org.eclipse.ui.actions
Class CopyFilesAndFoldersOperation

java.lang.Object
  |
  +--org.eclipse.ui.actions.CopyFilesAndFoldersOperation

public class CopyFilesAndFoldersOperation
extends Object

Perform the copy of file and folder resources from the clipboard when paste action is invoked.

This class may be instantiated; it is not intended to be subclassed.


Constructor Summary
CopyFilesAndFoldersOperation(Shell shell)
          Creates a new operation initialized with a shell.
 
Method Summary
 void copyFiles(String[] fileNames, IContainer destination)
          Paste files and folders on the clipboard to the destination (i.e to the selected resource).
 void copyResources(IResource[] resources, IContainer destination)
          Copies the given resources to the destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyFilesAndFoldersOperation

public CopyFilesAndFoldersOperation(Shell shell)
Creates a new operation initialized with a shell.

Parameters:
shell - parent shell for error dialogs
Method Detail

copyResources

public void copyResources(IResource[] resources,
                          IContainer destination)
Copies the given resources to the destination.

Parameters:
resources - the resources to copy
destination - destination to which resources on the clipboard will be pasted

copyFiles

public void copyFiles(String[] fileNames,
                      IContainer destination)
Paste files and folders on the clipboard to the destination (i.e to the selected resource).


Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.