<!ELEMENT extension (validationParticipant*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT validationParticipant (requires* , managedMarker*)>
<!ATTLIST validationParticipant
class CDATA #REQUIRED
id CDATA #REQUIRED
modifiesEnvironment (true | false)
createsProblems (true | false)
requiredSourceLevel CDATA #IMPLIED
>参加プログラムのコンパイル定義です。この定義により、参加プログラムを配列させることができます。 参加プログラムはグループ単位で実行されます。環境を変更する参加プログラムのグループが最初に実行され、 次に、問題を作成する参加プログラムのグループが実行され、最後に他の参加プログラムのグループが実行されます。 各グループ内では、参加プログラムは「要求」属性により順序付けされます。「要求」属性が、 グループに属さない参加プログラムを指している場合は、無視されます。
org.eclipse.jdt.core.compiler.validationParticipant
の public サブクラスを実装する必要があります。
<!ELEMENT requires EMPTY>
<!ATTLIST requires
id CDATA #REQUIRED
>この参加プログラムのコンパイルの実行に必要な参加プログラム
<!ELEMENT managedMarker EMPTY>
<!ATTLIST managedMarker
markerType CDATA #REQUIRED
>管理対象マーカーは、記録された問題 (BuildContext#recordNewProblems(CategorizedProblem[]) を参照) から作成され、対応するソース・ファイルが再ビルドまたはプロジェクトがクリーン処理された場合に削除されます。
validationParticipant
の宣言例を以下に示します。
<extension id="apt" name="%annotationProcessingName" point="org.eclipse.jdt.core.validationParticipant"> <validationParticipant class="org.eclipse.jdt.apt.core.internal.AptvalidationParticipant" id="APT" requiredSourceLevel="1.5"> <managedMarker markerType="org.eclipse.jdt.apt.core.compile.problem"/> </validationParticipant> </extension>
Copyright (c) 2006 BEA Systems, Inc and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html