create a custom code completion for eclipse [closed]

旧街凉风 提交于 2019-12-24 11:08:48

问题


I am trying to make a plugin for eclipse to add more results in the code completion window. In order to do that i need to get a reference to the Java Editor in order to override the getContentAssistant method of the editor’s SourceViewerConfiguration.

So, how can i get that reference? Thank you

PS. feel free to provide any suggestions or links that can be helpful


回答1:


Implement the javaCompletionProposalComputer. The link you gave is not useful, as that is only for people who implement a language editor, but the Java editor already exists.



来源:https://stackoverflow.com/questions/13220691/create-a-custom-code-completion-for-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!