<!ELEMENT extension (factory)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT factory EMPTY>
<!ATTLIST factory
class CDATA #REQUIRED
extensions CDATA #IMPLIED
fileNames CDATA #IMPLIED
contentTypeId CDATA #IMPLIED>
文件 Factory 的規格。為了尋找給定檔案的 Factory,會以下列順序查閱每個 Factory 規格的屬性︰contentTypeId、fileNames、extensions。如果對給定的檔案發現多個、同樣特定的 Factory 規格,並不會指定使用哪一個 Factory。
<extension id=
"org.eclipse.jdt.debug.ui.SnippetDocumentFactory"
name=
"%snippetDocumentFactory.name"
point=
"org.eclipse.core.filebuffers.documentCreation"
>
<factory extensions=
"jpage"
class=
"org.eclipse.jdt.internal.debug.ui.snippeteditor.SnippetDocumentFactory"
>
</factory>
</extension>
Copyright (c) 2001, 2004 IBM Corporation and others.
All rights reserved.
本程式和隨附的資料可以根據隨附這項分送且可在 http://www.eclipse.org/legal/cpl-v10.html 中取得之 Common Public License v1.0 之條款來使用