Completion list APIs
Hi there,
I'm developing a plug-in for the IntelliJ IDE that will need to make use of some completion list APIs. I'm just looking for a little bit of guidance around the subject, so I just have a few questions. I am aware that the completion list is briefly covered in the documentation.
Is there a method or methods that will return a list of classes, members and methods of a package to a string? I know that the completion list must do this in order to get a handle on what context it is in.
Specifically regarding the completion list, what method returns the current contents of the completion list to a string?
Thank you for taking the time to read my questions.
Please sign in to leave a comment.
Hello Brian,
> method or methods that will return a list of classes, members and methods of a package
what language is your plugin for?
> what method returns the current contents
if you are asking about the part of the symbol entered by user, try:
CompletionParameters.getOriginalPosition()
if you need parent (complex symbol this element is part of), add
.getContext().getParent().getText();
Java
Thanks for your answer, I'll try that out.
for Java, read the completion FAQ
this method may shed some light re: how completion list is populated.
Very helpful :)