01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.refactoring.tagging;
11:
12: import org.eclipse.ltk.core.refactoring.RefactoringStatus;
13: import org.eclipse.ltk.core.refactoring.participants.RefactoringArguments;
14:
15: /**
16: * Interface for refactorings which can be initialized when run as a refactoring
17: * script.
18: *
19: * @since 3.2
20: */
21: public interface IScriptableRefactoring {
22:
23: /**
24: * Initializes the refactoring with the refactoring arguments.
25: *
26: * @param arguments
27: * the refactoring arguments
28: * @return an object describing the status of the initialization. If the
29: * status has severity <code>FATAL_ERROR</code>, the refactoring
30: * will not be executed.
31: */
32: public RefactoringStatus initialize(RefactoringArguments arguments);
33: }
|