KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > reorg > JDTMoveRefactoringDescriptor


1 /*******************************************************************************
2  * Copyright (c) 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.jdt.internal.corext.refactoring.reorg;
12
13 import java.util.HashMap JavaDoc;
14 import java.util.Map JavaDoc;
15
16 import org.eclipse.core.runtime.Assert;
17
18 import org.eclipse.jdt.internal.corext.refactoring.JDTRefactoringDescriptor;
19
20 /**
21  * Descriptor object of a JDT move refactoring.
22  *
23  * @since 3.3
24  */

25 public final class JDTMoveRefactoringDescriptor extends JDTRefactoringDescriptor {
26
27     /** The create target execution log */
28     private final CreateTargetExecutionLog fLog;
29
30     /**
31      * Creates a new JDT move refactoring descriptor.
32      *
33      * @param log
34      * the create target execution log
35      * @param id
36      * the unique id of the refactoring
37      * @param project
38      * the project name, or <code>null</code>
39      * @param description
40      * the description
41      * @param comment
42      * the comment, or <code>null</code>
43      * @param arguments
44      * the argument map
45      * @param flags
46      * the flags
47      */

48     public JDTMoveRefactoringDescriptor(final CreateTargetExecutionLog log, final String JavaDoc id, final String JavaDoc project, final String JavaDoc description, final String JavaDoc comment, final Map JavaDoc arguments, final int flags) {
49         super(id, project, description, comment, arguments, flags);
50         Assert.isNotNull(log);
51         fLog= log;
52     }
53
54     /**
55      * {@inheritDoc}
56      */

57     public Map JavaDoc getArguments() {
58         final Map JavaDoc arguments= new HashMap JavaDoc(super.getArguments());
59         ReorgPolicyFactory.storeCreateTargetExecutionLog(getProject(), arguments, fLog);
60         return arguments;
61     }
62 }
63
Popular Tags