KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ltk > core > refactoring > participants > CopyArguments


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ltk.core.refactoring.participants;
12
13 import org.eclipse.core.runtime.Assert;
14
15 /**
16  * Copy arguments describe the data that a processor
17  * provides to its copy participants.
18  * <p>
19  * This class is not intended to be subclassed by clients.
20  * </p>
21  *
22  * @since 3.1
23  */

24 public class CopyArguments extends RefactoringArguments {
25
26     private Object JavaDoc fDestination;
27     private final ReorgExecutionLog fLog;
28     
29     /**
30      * Creates new copy arguments.
31      *
32      * @param destination the destination of the copy
33      * @param log the log for the execution of the reorg refactoring
34      */

35     public CopyArguments(Object JavaDoc destination, ReorgExecutionLog log) {
36         Assert.isNotNull(destination);
37         Assert.isNotNull(log);
38         fDestination= destination;
39         fLog= log;
40     }
41     
42     /**
43      * Returns the destination of the move
44      *
45      * @return the move's destination
46      */

47     public Object JavaDoc getDestination() {
48         return fDestination;
49     }
50     
51     /**
52      * Returns the resource execution log.
53      *
54      * @return the resource execution log
55      */

56     public ReorgExecutionLog getExecutionLog() {
57         return fLog;
58     }
59     
60     /**
61      * {@inheritDoc}
62      *
63      * @since 3.2
64      */

65     public String JavaDoc toString() {
66         return "copy to " + fDestination.toString(); //$NON-NLS-1$
67
}
68 }
69
Popular Tags