Content assist for Eclipse JSDT based Editor(基于 Eclipse JSDT 的编辑器的内容辅助)
问题描述
在 Eclipse 中,内容辅助通常由实现 IContentAssistProcessor
(JavaDoc, 例子)
In Eclipse content assist is usually implemented by some class that implements IContentAssistProcessor
(JavaDoc, example)
如何为基于 JSDT 的编辑器实现相同的 CompletionProposal
?
How to implement the same CompletionProposal
s for JSDT based Editor?
我知道的唯一例子是 http://code.google.com/a/eclipselabs.org/p/jsdt-jquery/ ,但它很大且不清楚如何扩展 JSDT 以进行代码辅助.
The only example I know is http://code.google.com/a/eclipselabs.org/p/jsdt-jquery/ , but it is large and unclear how to extend JSDT for code assist.
JSDT 中还有其他 API 吗?请指出要使用的 API.
Are there other APIs in JSDT? Please point to APIs to use.
相关
如何扩展javascript编辑器Eclipse中的JSDT与添加新功能
推荐答案
你需要实现完成提议扩展点.在那里,您必须指定一个实现必要接口的类,但它与非常通用的 IContentAssistProcessor 不同.
You need to implement the completion proposal extension point of the JSDT editor. In there you have to specify a class implementing the necessary interface, but it is a different one than the very generic IContentAssistProcessor.
根据您的用例,您可能还想查看相关的 quickAssist 和 quickFix 扩展点.
Depending on your use case you may also want to have a look at the related quickAssist and quickFix extension points.
这篇关于基于 Eclipse JSDT 的编辑器的内容辅助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:基于 Eclipse JSDT 的编辑器的内容辅助


- Eclipse 插件更新错误日志在哪里? 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01