Creating a new ToolWindow and I need the Find toolbar to popup

Answered

I'm creating a new tool window and it has a JEditorPane. I want to be able to be selected in the tool window and click CTRL + F or CMD + F and have the Find toolbar pop up. Similar to how it does in the normal editor or in the event log.

Whats the class that implements the Find Toolbar?

0
1 comment

If you really need to use JEditorPane instead of builtin Editor/Viewer from IntelliJ Platform, you can try using com.intellij.find.SearchReplaceComponent "manually".

See com.intellij.notification.EventLogConsole#createLogEditor for sample how EventLog uses builtin Editor which comes with all of this "for free".

0

Please sign in to leave a comment.