KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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