Community
Participate
Working Groups
Build Identifier: 20110916-0149 Display a tool tip to show the classes that require the import. For example, if "import java.util.*;" is moused over, then display "ArrayList, HashMap" in a vertical list if these classes are used in the Java file. If I have a bunch of imports at the top and they have wildcards at the end, I won't know what classes require the import. Reproducible: Always
> If I have a bunch of imports at the top and they have wildcards at the end, I > won't know what classes require the import. Why would this information be of any value? Can you give some details? What decisions would you make after seeing that information?
(In reply to comment #1) > Why would this information be of any value? Can you give some details? What > decisions would you make after seeing that information? When looking at the imports, I might think "Why is that import there? What classes am I using from it?". With the tool tip of information, I might realize that I imported the class from the wrong package. Or, I might decide that I should use a different class and not create a dependency on a particular library.
> Or, I might decide > that I should use a different class and not create a dependency on a particular > library. That you already see from the package name. Another solution besides the hover could be marking the types when inside the import.
(In reply to comment #3) > Another solution besides the hover could be marking the types when inside the > import. Good idea. Both would be nice. Just marking the types would require scrolling to find them all in code.