KickJava   Java API By Example, From Geeks To Geeks.

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


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 delete elements. A delete
15  * participant can't assume that its associated refactoring processor is a
16  * delete processor. A delete operation might be a side effect of another
17  * refactoring operation.
18  * <p>
19  * Delete participants are registered via the extension point <code>
20  * org.eclipse.ltk.core.refactoring.deleteParticipants</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 DeleteParticipant extends RefactoringParticipant {
27
28     private DeleteArguments fArguments;
29
30     /**
31      * {@inheritDoc}
32      */

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

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