リファクタリング・コントリビューション

org.eclipse.ltk.core.refactoring.refactoringContributions

3.2

この拡張ポイントを使用して、リファクタリング・コントリビューションを定義します。リファクタリングは、RefactoringDescriptor をベースとした実行準備済みのリファクタリング・インスタンスを、動的に構成するための手段を提供します。

<!ELEMENT extension (contribution*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT contribution EMPTY>

<!ATTLIST contribution

id    CDATA #REQUIRED

class CDATA #REQUIRED>


以下の例は、固有の ID org.eclipse.ltk.core.rename.resource を持つ名前変更リソース・リファクタリングのために、クラス RenameResourceRefactoringContribution によって実装されたリファクタリング・コントリビューションを定義します。
   

<extension point=

"org.eclipse.ltk.core.refactoring.refactoringContributions"

>

<contribution class=

"org.eclipse.ltk.core.refactoring.RenameResourceRefactoringContribution"

id=

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

/>

</extension>

コントリビュートされた実装クラスは、 org.eclipse.ltk.core.refactoring.RefactoringContribution を拡張しなければなりません。