1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
13 import net.sourceforge.phpdt.core.IJavaElement;
14 import net.sourceforge.phpdt.internal.core.util.Util;
17 * This operation moves resources (package fragments and compilation units) from
18 * their current container to a specified destination container, optionally
19 * renaming the elements. A move resource operation is equivalent to a copy
20 * resource operation, where the source resources are deleted after the copy.
22 * This operation can be used for reorganizing resources within the same
25 * @see CopyResourceElementsOperation
27 public class MoveResourceElementsOperation extends
28 CopyResourceElementsOperation {
30 * When executed, this operation will move the given elements to the given
33 public MoveResourceElementsOperation(IJavaElement[] elementsToMove,
34 IJavaElement[] destContainers, boolean force) {
35 super(elementsToMove, destContainers, force);
41 protected String getMainTaskName() {
42 return Util.bind("operation.moveResourceProgress"); //$NON-NLS-1$
46 * @see CopyResourceElementsOperation#isMove()
48 protected boolean isMove() {