为eclipse创建自定义代码完成

时间:2012-11-04 16:55:29

标签: eclipse eclipse-plugin code-completion

我正在尝试为eclipse创建一个插件,以便在代码完成窗口中添加更多结果。 为了做到这一点,我需要get a reference to the Java Editor in order to override the getContentAssistant method of the editor’s SourceViewerConfiguration

那么,我怎样才能得到那个参考? 谢谢

PS。随时提供任何有用的建议或链接

1 个答案:

答案 0 :(得分:1)

实施javaCompletionProposalComputer。您提供的链接没有用,因为这仅适用于实现语言编辑器的人,但Java编辑器已经存在。

相关问题