<!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.
這個程式和檢附的資料是遵循這項分送檢附的 Eclipse Public License 1.0 版的條款而提供的,
請造訪下列網址來取得此條款:http://www.eclipse.org/legal/epl-v10.html