Copyright (c) 2004, 2008 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
/******************************************************************************* * Copyright (c) 2004, 2008 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.eclipse.ltk.core.refactoring.participants; import org.eclipse.core.runtime.Assert;
Copy arguments describe the data that a processor provides to its copy participants.

This class is not intended to be subclassed by clients.

Since:3.1
@noextendThis class is not intended to be subclassed by clients.
/** * Copy arguments describe the data that a processor * provides to its copy participants. * <p> * This class is not intended to be subclassed by clients. * </p> * * @since 3.1 * * @noextend This class is not intended to be subclassed by clients. */
public class CopyArguments extends RefactoringArguments { private Object fDestination; private final ReorgExecutionLog fLog;
Creates new copy arguments.
Params:
  • destination – the destination of the copy
  • log – the log for the execution of the reorg refactoring
/** * Creates new copy arguments. * * @param destination the destination of the copy * @param log the log for the execution of the reorg refactoring */
public CopyArguments(Object destination, ReorgExecutionLog log) { Assert.isNotNull(destination); Assert.isNotNull(log); fDestination= destination; fLog= log; }
Returns the destination of the move
Returns:the move's destination
/** * Returns the destination of the move * * @return the move's destination */
public Object getDestination() { return fDestination; }
Returns the resource execution log.
Returns:the resource execution log
/** * Returns the resource execution log. * * @return the resource execution log */
public ReorgExecutionLog getExecutionLog() { return fLog; }
{@inheritDoc}
Since:3.2
/** * {@inheritDoc} * * @since 3.2 */
@Override public String toString() { return "copy to " + fDestination.toString(); //$NON-NLS-1$ } }