Toolbar drop-down list (ComboBoxAction) with search over submenus

Answered

Hi there,

I implemented a drop-down list in the editor header, following the Toolbar drop-down list guideline. It includes the list of available “databases” and “tables”. See the screenshot below.

The problem is that when I try to search for “catalog”, the search doesn't include the submenus with “tables”. See the screenshot below.

Is there a way to include the submenus in the search results too? My implementation is based on ComboBoxAction and nested DefaultActionGroups.

I appreciate any help you can provide.

Regards,
Maksim

0
2 comments

Seems not possible https://youtrack.jetbrains.com/issue/IDEA-251957/Speed-search-in-nested-menus-of-the-main-IDE-menu. Also this could have some adverse affects in complex structures IMHO ("unexpected" matches from irrelevant submenus).

1

Thanks, Yann Cebron! I'm now experimenting with ExpandableComboAction and TreePopup to achieve what I need. I see that this is how similar dropdowns are implemented today, e.g. the git branch selector.

I'd suggest improving the UI Guidelines by mentioning other implementation options apart from ComboBoxAtion.

0

Please sign in to leave a comment.