Madrapps / dagger-plugin

Plugin that supports easy usage of Dagger 2 library in IntelliJ iDEA or Android Studio
Apache License 2.0
30 stars 9 forks source link

Bindings (Objects) in the Dagger Tool window #1

Closed thsaravana closed 4 years ago

thsaravana commented 4 years ago

Visualize the Bindings as Tree in the Dagger Tool window. The graph should flow as below:

|> AppComponent // root component with one method that creates a CoffeeMaker ||||> CoffeeMaker // the CoffeeMaker class with @Inject with params Heater/Pump ||||>||||> Heater // the Provides method in the Module which produces the Heater ||||>||||> Pump // the Binds method in Module that binds a Thermosiphon ||||>||||>||||> Thermosiphon the Thermosiphon class with @Inject with param Heater ||||>||||>||||>||||> Heater the Provides method in the Module which produces the Heater

  1. Note that we only show Production Java/Kotlin sources here (not the Dagger modules) except for the root component
  2. Clicking on Component should show the @Component interface in the Editor.
  3. Clicking on Other nodes should take us to the place where the Object is created for these.