blob: 85afa93866de93bdfabb1dd18b6077f8ac0fed16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package org.eclipse.jdt.internal.core;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.core.IJavaElement;
/**
* This operation moves resources (package fragments and compilation units) from their current
* container to a specified destination container, optionally renaming the
* elements.
* A move resource operation is equivalent to a copy resource operation, where
* the source resources are deleted after the copy.
* <p>This operation can be used for reorganizing resources within the same container.
*
* @see CopyResourceElementsOperation
*/
public class MoveResourceElementsOperation extends CopyResourceElementsOperation {
/**
* When executed, this operation will move the given elements to the given containers.
*/
public MoveResourceElementsOperation(IJavaElement[] elementsToMove, IJavaElement[] destContainers, boolean force) {
super(elementsToMove, destContainers, force);
}
/**
* @see MultiOperation
*/
protected String getMainTaskName() {
return "Moving resources...";
}
/**
* @see CopyResourceElementsOperation#isMove()
*/
protected boolean isMove() {
return true;
}
}
|