<!ELEMENT extension (provider*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT provider EMPTY>
<!ATTLIST provider
extensions CDATA #IMPLIED
inputTypes CDATA #IMPLIED
class CDATA #REQUIRED
id CDATA #REQUIRED>
<extension point=
"org.eclipse.ui.editors.documentProviders"
>
<provider extensions=
".jav"
class=
"org.eclipse.ui.examples.javaeditor.JavaDocumentProvider"
id=
"org.eclipse.ui.examples.javaeditor.JavaDocumentProvider"
>
</provider>
</extension>
這個範例登錄 org.eclipse.ui.examples.javaeditor.JavaDocumentProvider 作為副檔名「.jav」的預設提供者。
這個範例登錄 org.eclipse.ui.editors.text.FileDocumentProvider 作為本身是 org.eclipse.ui.IStorageEditorInput 實例的所有編輯器輸入的預設提供者。<extension point=
"org.eclipse.ui.editors.documentProviders"
>
<provider inputTypes=
"org.eclipse.ui.IStorageEditorInput"
class=
"org.eclipse.ui.editors.text.FileDocumentProvider"
id=
"org.eclipse.ui.editors.text.FileDocumentProvider"
>
</provider>
</extension>
Copyright (c) 2001, 2004 IBM Corporation and others.
All rights reserved.
本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html