How to add search functionality to `Editor`
Answered
In my plugin I receive messages from remote server, and it is useful to output some of those messages to user. For that purpose I found ConsoleViewImpl
in IntelliJ Platform. But as there are a lot of messages, I also need to provide a search functionality, so that user can quickly navigate to needed message in the console. Right now I could not find a way to add search with selection and 'go to next search item' and 'go to previous search item', except implementing it manually. ConsoleViewImpl
provides Editor
.
My question is how do you add search to some JComponent
that contains text component like Editor
in IntelliJ Platform?
Please sign in to leave a comment.
Please share the code where you setup ConsoleViewImpl
And then I use it in toolWindow:
The client does not do mush setup, it just creates consoles:
Sorry, for my needs cmd+F will do, so no need to implement anything on top of it, so this question is solved