Refactoring Creators

org.eclipse.ltk.core.refactoring.refactoringCreators

3.2

The extension point is used to define refactoring instance creators. Refactoring instance creators provide a means to dynamically construct a ready-to-execute refactoring instance based on a RefactoringDescriptor.

<!ELEMENT extension (creator*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT creator EMPTY>

<!ATTLIST creator

id    CDATA #REQUIRED

class CDATA #REQUIRED>


The example below defines a refactoring instance creator implemented by class RenameResourceRefactoringInstanceCreator for the rename resource refactoring with unique id org.eclipse.ltk.core.rename.resource:
   

<extension point=

"org.eclipse.ltk.core.refactoring.refactoringCreators"

>

<creator class=

"org.eclipse.ltk.core.refactoring.scripting.RenameResourceRefactoringInstanceCreator"

id=

"org.eclipse.ltk.core.rename.resource"

/>

</extension>

The contributed class must implement org.eclipse.ltk.core.refactoring.IRefactoringInstanceCreator

This plugin offers a partial implementation RefactoringInstanceCreator of the interface IRefactoringInstanceCreator, which converts arguments from refactoring descriptors to generic refactoring arguments (class GenericRefactoringArguments).