在eclipse信息中心中为*.xsd文件设置内容类型?

在eclipse信息中心中为*.xsd文件设置内容类型?,eclipse,xsd,Eclipse,Xsd,我们有一个运行eclipse信息中心的java服务器。设置标准;差不多是根据。我们的一个插件有指向XSD文件的链接,我们希望能够显示它。问题是XSD模式显示为text/plain,而不是text/xml 如何设置文件类型的内容类型 编辑: 信息中心需要以下插件: org.apache.lucene org.eclipse.core.runtime org.eclipse.help org.eclipse.help.appserver org.eclipse.help.base org.eclip

我们有一个运行eclipse信息中心的java服务器。设置标准;差不多是根据。我们的一个插件有指向XSD文件的链接,我们希望能够显示它。问题是XSD模式显示为text/plain,而不是text/xml

如何设置文件类型的内容类型

编辑: 信息中心需要以下插件:

org.apache.lucene
org.eclipse.core.runtime
org.eclipse.help
org.eclipse.help.appserver
org.eclipse.help.base
org.eclipse.help.webapp
org.eclipse.osgi
org.eclipse.tomcat
org.eclipse.update.configurator

因此,我猜测服务器是一个tomcat

,虽然我对您的设置不太确定,但添加对org.eclipse.wst.xsd.ui的依赖项通常会将xsd编辑器添加到eclipse应用程序中。

因此,这个问题的答案是Jetty服务器中有一个文件确定如何处理不同的文件类型。对于
*.xsd
,它默认为text/plain

解决方案是反编译
org.mortbay.jetty*.jar
,通过在末尾添加
xsd=application/xml
来更改文件
mime.properties
。然后重新编译它

小菜一碟。只花了两年时间就发现了:)