Eclipse xml编辑器冲突的问题 [原创]
在eclipse 中加载了很多插件,发现图形化的xml 编辑插件在打开图形化窗口式总是有如下的错误:
Unsupported content type in editor. To associate file extension with a supported content type, please see .....
Re: How do I work around "Unsupported Content Type" error for HTML
Ian Leslie wrote:> I just downloaded the web tools plug-ins (Web Standard Tools and J2EE
> Standard Tools). I created my first web site (a static web site
> project) and tried to create and edit an XHTML file. I received an
> "Unsupported content type in editor..." error when I tried to open it
> with the "HTML Editor". I have XML Buddy installed and it opened it by
> default.
>
> I have read the thread:
> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg08746.html
>
> But it does not say how to work around the problem (other than removing
> XML Buddy) XML Buddy has been my XML editor for a while and I would
> like to continue to use it for XML editing. What can I do?
XMLBuddy claims to have worked around the problem for themselves
with their 2.0.66/2.0.67 versions, but for now the only solution to
allow WTP's editors to work is to uninstall/disable XMLBuddy.
--
- Nitin
恍然大悟 原来是 XMLBuddy 搞得鬼, xmlbuddy 的xml编辑器和 WTP 的编辑器冲突, 禁用 xmlbuddy 重启eclipse 果然问题解决。
解决方法
用links目录方式安装eclipse插件时需要注意的问题:
1.新增加的插件文件路径可以添加在links目录下其他文件中,也可以单独建立一个文件,形式都是path=...,只要重新启动eclipse就可以生效.但是需要注意的是如果按照前一种方式,当执行eclipse -clean时候,若一个文件放置多个path路径,则只有最后一个生效.
2.对于eclipse3.0,删除configuration目录重新启动eclipse与直接执行eclipse -clean的效果是一样的,但是对于eclipse3.1不可以直接删除configuration目录,必须保留config.ini文件.
3.eclipse -clean启动方式,一般是用于插件去除后的还原操作,因为仅仅去除links目录里的路径指示有时是不够的,可能会导致启动错误.还有一种用途,就是在安装多国语言包后,因为之前已经启动过英文版的eclipse,导致虽然插件安装,但是汉化不彻底.用eclipse -clean重新启动可以改变这种状况.
4.把link指向的目录移走或重命名