Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / MoveElementsOperation.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 import net.sourceforge.phpdt.internal.core.util.Util;
15
16 /**
17  * This operation moves elements from their current container to a specified
18  * destination container, optionally renaming the elements. A move operation is
19  * equivalent to a copy operation, where the source elements are deleted after
20  * the copy.
21  * <p>
22  * This operation can be used for reorganizing elements within the same
23  * container.
24  * 
25  * @see CopyElementsOperation
26  */
27 public class MoveElementsOperation extends CopyElementsOperation {
28         /**
29          * When executed, this operation will move the given elements to the given
30          * containers.
31          */
32         public MoveElementsOperation(IJavaElement[] elementsToMove,
33                         IJavaElement[] destContainers, boolean force) {
34                 super(elementsToMove, destContainers, force);
35         }
36
37         /**
38          * Returns the <code>String</code> to use as the main task name for
39          * progress monitoring.
40          */
41         protected String getMainTaskName() {
42                 return Util.bind("operation.moveElementProgress"); //$NON-NLS-1$
43         }
44
45         /**
46          * @see CopyElementsOperation#isMove()
47          */
48         protected boolean isMove() {
49                 return true;
50         }
51 }