在Eclipse中提供自定义内容辅助处理器的扩展点 [英] Extension point for providing custom content assist processors in Eclipse

查看:126
本文介绍了在Eclipse中提供自定义内容辅助处理器的扩展点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写eclipse插件来增加对属性文件的更好的支持。一个缺失的内容是内容辅助...当用户开始输入一些字符串并按下内容辅助键时,我想显示匹配的属性键。



例如,当我在我的一个属性文件中的财产 hello = world 时,我开始输入格式(hel/ code>和现在点击 CTRL + SPACE ,我想看到可用的 hello 属性。



我的问题是我找不到正确的扩展点来提供自定义内容辅助处理器。我如何为文本文件提供我自己的内容辅助处理器?我想让它主要在Java, JSP和XML文件。

解决方案

之前我已经找到了这样一个扩展点,没有成功,据我所知不可能以这种方式在Eclipse中添加新的类型的内容来帮助编辑器。


I am writing eclipse plugin to add better support for properties files. One of the missing piece is content-assist ... I'd like to show matching properties keys when user starts typing some string and presses content assist key.

For example, when I have property hello = world in one of my properties files, and I start typing format("hel and hit CTRL+SPACE now, I'd like to see available hello property.

My problem is that I cannot find correct extension point to provide custom content assist processor. How can I provide my own content assist processor for text files? I'd like to make it work mainly in Java, JSP and XML files.

解决方案

I've looked for such an extension point before with no success. As far as I know it's not possible to add new types of content assist to editors in Eclipse in this way.

这篇关于在Eclipse中提供自定义内容辅助处理器的扩展点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆