KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.eclipse.core.runtime.Assert;
14
15 /**
16  * A generic delete refactoring. The actual refactoring is done
17  * by the delete processor passed to the constructor.
18  * <p>
19  * This class is not intended to be subclassed by clients.
20  * </p>
21  * @since 3.0
22  */

23 public class DeleteRefactoring extends ProcessorBasedRefactoring {
24
25     private DeleteProcessor fProcessor;
26     
27     /**
28      * Constructs a new delete refactoring for the given processor.
29      *
30      * @param processor the delete processor
31      */

32     public DeleteRefactoring(DeleteProcessor processor) {
33         super(processor);
34         Assert.isNotNull(processor);
35         fProcessor= processor;
36     }
37     
38     /**
39      * {@inheritDoc}
40      */

41     public RefactoringProcessor getProcessor() {
42         return fProcessor;
43     }
44 }
45
Popular Tags