KickJava   Java API By Example, From Geeks To Geeks.

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


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 create elements. A create
15  * participant can't assume that its associated processor is of a specific type.
16  * A create could be triggered as a side effect of another refactoring.
17  * <p>
18  * Create participants are registered via the extension point <code>
19  * org.eclipse.ltk.core.refactoring.createParticipants</code>. Extensions to
20  * this extension point must therefore extend this abstract class.
21  * </p>
22  *
23  * @since 3.0
24  */

25 public abstract class CreateParticipant extends RefactoringParticipant {
26     
27     private CreateArguments fArguments;
28
29     /**
30      * {@inheritDoc}
31      */

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

41     public CreateArguments getArguments() {
42         return fArguments;
43     }
44 }
45
Popular Tags