提供程序可为此扩展点提供扩展。不需要除 XML 扩展声明之外的任何代码。
<!ELEMENT extension (fileTypes*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED>
<!ELEMENT fileTypes EMPTY>
<!ATTLIST fileTypes
extension CDATA #REQUIRED
type CDATA #REQUIRED>
<extension point=
"org.eclipse.team.core.fileTypes"
>
<fileTypes extension=
"txt"
type=
"text"
/>
</extension>
Copyright (c) 2004, 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