Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build call hierarchy for lombok generated method in intellij-idea

Given an example:

@Data
public VO {
    private String item;
}

How to build call hierarchy for the getItem()?

I know there is a cumbersome path :open Structure, then find the method, then build hierarchy. Is there more efficient path or plugin?

like image 509
blankboy2011 Avatar asked Jul 12 '17 04:07

blankboy2011


People also ask

How do I get call hierarchy in IntelliJ?

From the main menu, select Navigate | Call Hierarchy or press Ctrl+Alt+H .

How do I get call hierarchy in Eclipse?

To find the references of a method, eclipse has a plugin called Open Call Hierarchy(Ctrl+Alt+H).


1 Answers

you can open the "stucture view" this should display the generated methods. If not you maybe need to install the lombok plugin.

In the structure view select the method getItem() and press the short cut for the call hierarchy (Strg + Alt + H) and the call hierarchy for the selected method will open up.

like image 164
Simulant Avatar answered Sep 25 '22 17:09

Simulant