943b1dca20361dafe423fcc93c08a45058a0c49e
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / MoveResourceElementsOperation.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
12
13 import net.sourceforge.phpdt.core.IJavaElement;
14
15 /**
16  * This operation moves resources (package fragments and compilation units) from their current
17  * container to a specified destination container, optionally renaming the
18  * elements.
19  * A move resource operation is equivalent to a copy resource operation, where
20  * the source resources are deleted after the copy.
21  * <p>This operation can be used for reorganizing resources within the same container.
22  *
23  * @see CopyResourceElementsOperation
24  */
25 public class MoveResourceElementsOperation extends CopyResourceElementsOperation {
26 /**
27  * When executed, this operation will move the given elements to the given containers.
28  */
29 public MoveResourceElementsOperation(IJavaElement[] elementsToMove, IJavaElement[] destContainers, boolean force) {
30         super(elementsToMove, destContainers, force);
31 }
32 /**
33  * @see MultiOperation
34  */
35 protected String getMainTaskName() {
36         return Util.bind("operation.moveResourceProgress"); //$NON-NLS-1$
37 }
38 /**
39  * @see CopyResourceElementsOperation#isMove()
40  */
41 protected boolean isMove() {
42         return true;
43 }
44 }