ISynchronizable
文件。需要同步化文件的用戶端可以設定鎖定物件。不建議改寫現有的鎖定物件,因為可能破壞其他用戶端:如果文件已設定鎖定物件,用戶端應該使用這個物件。org.eclipse.jface.text.IDocument
實作方式的用戶端必須在文件提供者中建立相對應的文件。自訂文件將封裝檔案緩衝區所提供的文件。<!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, 2006 IBM Corporation and others.
All
rights reserved. 本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html