blob: c1c1fe499c0f74f70fd8087ac1ad062e6e75c3bb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.internal.core;
import org.eclipse.dltk.core.IModelElement;
import org.eclipse.dltk.internal.core.util.Messages;
/**
* 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(IModelElement[] elementsToMove, IModelElement[] destContainers, boolean force) {
super(elementsToMove, destContainers, force);
}
/**
* @see MultiOperation
*/
@Override
protected String getMainTaskName() {
return Messages.operation_moveResourceProgress;
}
@Override
protected boolean isMove() {
return true;
}
}