问题
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