Autocomplete TextField or Combobox with classes of a specific type
Answered
Hello,
I want a textfield with suggestions or a combobox with a defined list of classes that inherit or are a type of a specfic class, for example:
- interface MyState
- open class Parent : MyState
- class Child : Parent()
- class Custom : AnotherState
I want to obtain all the classes in a project (including dependencies) that inherit or extends from a interface or another class. In this case, the list should return a collection including the classes Parent and Child, but not Custom.
Some projects are quite huge, so if is possible to used the indexed classes to avoid freezing the UI it would be great.
Please sign in to leave a comment.
Hi Álvaro,
Search for
TextFieldWithAutoCompletion
. There are many topics about similar cases on the forum, e.g., https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000425060-TextFieldWithAutoCompletion-with-only-Interfaces-