Bug 123496 [IDE] Use operation validation API for IDE actions
We should use the Resources/Core operation validation API in the IDE actions for manipulating resources.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
/**
 * Perform the copy of file and folder resources from the clipboard when paste
 * action is invoked.
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 */
public class CopyFilesAndFoldersOperation {
	/**
	 * Status containing the errors detected when running the operation or
	 * <code>null</code> if no errors detected.
	 */
	private MultiStatus errorStatus;
	/**
	 * The parent shell used to show any dialogs.
	 */
	private Shell messageShell;
	/**
	 * Whether or not the copy has been canceled by the user.
	 */
	private boolean canceled = false;
	/**
	 * Overwrite all flag.
	 */
	private boolean alwaysOverwrite = false;
	/**
	 * Returns a new name for a copy of the resource at the given path in the
	 * given workspace. This name is determined automatically.
	 *