IntelliJ IDEA 2021.1 Help

CDI tool window

Note that this tool window is available only if there is a library that implements CDI (Context Dependency Injection) in the dependencies of one or more of your modules.

The CDI tool window provides a categorized hierarchical view of your CDI resources (beans).

At the top of the hierarchy are your modules. One level below are categories.

The categories correspond to bean types and qualifiers.

You can show or hide the categories. You can also open the elements shown in the tool window in the editor.

Showing and hiding categories

To show or hide a category, click Icons general gear plain on the title bar, and then click the necessary option.

Show options for cdi

The following options are available:

  • @Named. Show or hide @Named beans (the elements annotated with @Named ).

  • Custom Qualifiers. Show or hide the elements annotated with custom annotations.

  • Scope Types. Show or hide scope types (the elements annotated with @ApplicationScoped, @SessionScoped, @RequestScoped, and so on).

  • Deployment Types. Show or hide deployment types.

Opening elements in the editor

You can open the elements shown in the CDI tool window in the editor. To do that, select the element of interest and press F4.

To open the elements which are the "leaves" of the tree (that is, the ones at the bottom of the hierarchy), you can also use a double-click.

Last modified: 08 March 2021