<!ELEMENT extension (filesystem)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT filesystem (run)>
<!ATTLIST filesystem
scheme CDATA #REQUIRED>
<!ELEMENT run EMPTY>
<!ATTLIST run
class CDATA #REQUIRED>
如果此扩展是在标识为“com.xyz.coolplugin”的插件中定义的,则此文件系统扩展的标准名称将是“com.xyz.coolplugin.gopherFS”。<extension id=
"gopherFS"
name=
"Gopher File System"
point=
"org.eclipse.core.filesystem.filesystems"
>
<filesystem scheme=
"gopher"
>
<run class=
"com.xyz.fs.GopherFileSystem"
/>
</filesystem>
</extension>
可以通过 org.eclipse.core.filesystem.FileSystemCore.getFileSystem(String) 方法来获取文件系统实例。
Copyright (c) 2005, 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