KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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 /**
14  * A participant to participate in refactorings that copy elements to a shared
15  * clipboard. A copy participant can't assume that its associated refactoring
16  * processor is a copy processor. A copy operation might be a side effect of another
17  * refactoring operation.
18  * <p>
19  * Copy participants are registered via the extension point <code>
20  * org.eclipse.ltk.core.refactoring.copyParticipants</code>.
21  * Extensions to this extension point must therefore extend this abstract class.
22  * </p>
23  *
24  * @since 3.1
25  */

26 public abstract class CopyParticipant extends RefactoringParticipant {
27
28     private CopyArguments fArguments;
29     
30     /**
31      * {@inheritDoc}
32      */

33     protected final void initialize(RefactoringArguments arguments) {
34         fArguments= (CopyArguments)arguments;
35     }
36     
37     /**
38      * Returns the copy arguments.
39      *
40      * @return the copy arguments
41      */

42     public CopyArguments getArguments() {
43         return fArguments;
44     }
45 }
46
Popular Tags