コード・フォーマッター

ID: org.eclipse.jdt.core.codeFormatter

説明: この拡張ポイントは、Java エディターでフォーマット・コマンドを使用するときに使用可能なコード・フォーマッターを与えるメカニズムを提供します。

構成マークアップ:

   <!ELEMENT codeFormatter>
   <!ATTLIST codeFormatter 
      class         CDATA #REQUIRED
   >

例:

コード・フォーマッター拡張ポイントの例を以下に示します。

<extension
	point="org.eclipse.jdt.core.codeFormatter">
	<codeFormatter
		class="com.example.MyCodeFormatter"/>
</extension>

上の例では、フォーマット・コマンドは com.example.MyCodeFormatter に定義されている format メソッドを呼び出します。

 Copyright IBM Corporation and others 2000, 2002. All Rights Reserved.