Eclipse Platform
Release 3.2

org.eclipse.ltk.core.refactoring
Interface IRefactoringInstanceCreator

All Known Implementing Classes:
RefactoringInstanceCreator

public interface IRefactoringInstanceCreator

Interface for objects which are capable of creating a specific refactoring instance. Refactoring instance creators are stateless objects. They are instantiated on demand by the refactoring framework. It is not guaranteed that the same refactoring instance creator object will be used to create the arguments for a refactoring and to create the refactoring itself.

Note: this interface is not intended to be implemented by clients.

Note: This API is considered experimental and may change in the near future.

Since:
3.2

Method Summary
 RefactoringArguments createArguments(RefactoringDescriptor descriptor)
          Creates the a refactoring arguments for the specified refactoring descriptor.
 Refactoring createRefactoring(RefactoringDescriptor descriptor)
          Creates the a refactoring instance for the specified refactoring descriptor.
 

Method Detail

createArguments

public RefactoringArguments createArguments(RefactoringDescriptor descriptor)
Creates the a refactoring arguments for the specified refactoring descriptor.

Parameters:
descriptor - the refactoring descriptor
Returns:
the refactoring arguments, or null

createRefactoring

public Refactoring createRefactoring(RefactoringDescriptor descriptor)
                              throws CoreException
Creates the a refactoring instance for the specified refactoring descriptor.

Parameters:
descriptor - the refactoring descriptor
Returns:
the refactoring, or null
Throws:
CoreException - if the refactoring could not be created from the descriptor

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.