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>
文档工厂的规范。为了找到给定文件的工厂,按以下顺序查阅了每个工厂规范的属性:contentTypeId、fileNames 和 extensions。如果找到了给定文件的多个相同的特定工厂规范,则没有指定要使用哪个工厂。
<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. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html