All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aspectj.org.eclipse.jdt.internal.core.MoveResourceElementsOperation Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2000, 2009 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.aspectj.org.eclipse.jdt.internal.core;

import org.aspectj.org.eclipse.jdt.core.IJavaElement;
import org.aspectj.org.eclipse.jdt.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.
 * 

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 */ @Override protected String getMainTaskName() { return Messages.operation_moveResourceProgress; } /** * @see CopyResourceElementsOperation#isMove() */ @Override protected boolean isMove() { return true; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy