<!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 point=
"org.eclipse.core.filebuffers.annotationModelCreation"
>
<factory extensions=
"xzy"
class=
"org.eclipse.ui.texteditor.ResourceMarkerAnnotationModelFactory"
>
</factory>
</extension>
Copyright (c) 2001, 2005 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