Community
Participate
Working Groups
I think the call hierarchy feature should be enhanced to add Condition hierarchy capability. This way you could quickly see all the possible conditions in control flow that could lead to a method call. At each node of the tree you would be shown - The type of control flow element (if statement, while loop, for loop, exception catch, etc.) Using text or any icon or both. - The condition (example: "index != -1", booleanVarble", "preference.isEnabled()") - The method and Class in which this control flow element appears It may be better if there is a pane bellow the tree that shows the condition snippet since they may be too large to fit into a line of text in the tree. Also, java code coloring preferences could be applied to the conditions in a condition snippet pane. It would be nice if you could easily switch between call hierarchy view and control flow hierarchy view. Enhancing the call hierarchy view to have an alternate viewing mode called "Control Flow Hierarchy". I suggest that if there are nested conditions in a single method and the parent node is expanded all condition nodes that apply to that single method should be displayed (obviously I think). There are some tricky cases such as returns before a method call modifying the control flow structure but nothing too complex I think.
Would be nice to see such a feature in an experimental plugin. We don't have the resources at the moment to invest more in the call hierarchy view. Setting to later.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.