從: 版本 2.0
說明:這個延伸點係用來建立標示元解析產生器與特定種類的標示元的關聯性。 (某一類型或具有某種屬性值的標示元)。
配置標記:
<!ELEMENT extension (markerResolutionGenerator*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA
#IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT markerResolutionGenerator (attribute*)>
<!ATTLIST markerResolutionGenerator
class CDATA #REQUIRED
markerType CDATA #IMPLIED
>
<!ELEMENT attribute EMPTY>
<!ATTLIST attribute
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<extension point="org.eclipse.ui.markerResolution"> <markerResolutionGenerator class="org.eclipse.ui.examples.readmetool.ReadmeMarkerResolutionGenerator" markerType="org.eclipse.ui.examples.readmetool.readmemarker"> <attribute name="org.eclipse.ui.examples.readmetool.id" value="1234"/> </markerResolutionGenerator> </extension>在上面的範例中,標示元解析產生器與類型 org.eclipse.ui.examples.readmetool.readmemarker 的標示元相關聯, 其 org.eclipse.ui.examples.readmetool.id 的屬性值為 1234。
API 資訊:提供不止一個標示元說明產生器至給定的標示元。
Copyright (c) 2002, 2003 IBM Corporation and others.
All rights reserved.
這個程式和伴隨的素材可以根據伴隨這個分送,而且可在 http://www.eclipse.org/legal/cpl-v10.html 中取得的 Common Public License v1.0 的條款來使用