文档设置

org.eclipse.core.filebuffers.documentSetup

3.0

此扩展点用来定制文本文件缓冲区的文档的初始化过程,文本文件缓冲区由此插件的缺省文本文件缓冲区管理器来进行管理。它允许指定哪个文档设置参与者应该参与为某种文件内容类型、文件扩展名或文件名创建的文本文件缓冲区的初始化过程。

<!ELEMENT extension (participant)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT participant EMPTY>

<!ATTLIST participant

class         CDATA #REQUIRED

extensions    CDATA #IMPLIED

fileNames     CDATA #IMPLIED

contentTypeId CDATA #IMPLIED>

文档设置参与者的规范。为了找到给定文件的所有参与者,按以下顺序查阅了每个参与者规范的属性:contentTypeId、fileNames 和 extensions。如果找到了多个参与者,则未指定调用它们的顺序。



   

<extension id=

"JavaDocumentSetupParticipant"

name=

"%javaDocumentSetupParticipant"

point=

"org.eclipse.core.filebuffers.documentSetup"

>

<participant extensions=

"java"

class=

"org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant"

>

</participant>

</extension>

文档设置参与者必须实现 org.eclipse.core.filebuffers.IDocumentSetupParticipant。