KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > tagging > IScriptableRefactoring


1 /*******************************************************************************
2  * Copyright (c) 2005, 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.jdt.internal.corext.refactoring.tagging;
12
13 import org.eclipse.ltk.core.refactoring.RefactoringStatus;
14 import org.eclipse.ltk.core.refactoring.participants.RefactoringArguments;
15
16 /**
17  * Interface for refactorings which can be initialized when run as a refactoring
18  * script.
19  *
20  * @since 3.2
21  */

22 public interface IScriptableRefactoring {
23
24     /**
25      * Initializes the refactoring with the refactoring arguments.
26      *
27      * @param arguments
28      * the refactoring arguments
29      * @return an object describing the status of the initialization. If the
30      * status has severity <code>FATAL_ERROR</code>, the refactoring
31      * will not be executed.
32      */

33     public RefactoringStatus initialize(RefactoringArguments arguments);
34 }
35
Popular Tags