Bug 552261 - Provide a table view of all used variable names in a project for refactoring
Summary: Provide a table view of all used variable names in a project for refactoring
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-20 13:25 EDT by Carsten Hammer CLA
Modified: 2019-10-20 13:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Hammer CLA 2019-10-20 13:25:43 EDT
It would be pretty cool if eclipse could provide a table view that includes the following informations:

<variablename>:<variabletype>:<number of occurences>


It should be sorted against the last tab. Renaming a variable in the first column of a line should rename all occurences of this variable. Klicking on the third column should open the search view with all code locations where it is used.
When renaming a variable in one record of the table to a variablename of another record of the table it should immediatly colapse both lines into one with the sum of the number of occurences.

This refactoring should support you making sure that all over the code the same variablenames are used for the same thing. If you see two sligthly different variable names in this view that in fact mean the same thing then you can easily change it here. This refactoring should make use of the existing error detection facilities for variable renaming (name clash..) to pop up some useful error messages and maybe suggest how to resolve the situation. (I can imagine that some code might be hard to refactor and analyze regarding the possible error conditions)