我希望我的 Eclipse 插件向 Eclipse 指定一个 XSD 文件,以便将其添加到目录中。
最佳答案
org.eclipse.wst.xml.core.catalogContributions
扩展点允许您添加到目录(这要求您安装 Eclipse 的 Web Tools (WST) 组件)。
例如,org.eclipse.wst.xsd.core
插件添加了以下内容:
<extension
point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution id="default">
<uri
name="http://www.w3.org/2001/XMLSchema"
uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSchema.xsd" />
<system
systemId="http://www.w3.org/2001/xml.xsd"
uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.xsd"/>
</catalogContribution>
</extension>
关于xml - Eclipse 如何在 XML 目录中生成插件指定条目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21487731/