I have tried on several occasions in the past to get Java source files successfully attached to my project, and each time I have given up in despair. This time, however, I really really need to step into JTable, so I've come here in the desperate hope that some kind soul can help me achieve attached-sources nirvana :)
I go into Project Structure, I go to the Libraries (not Global Libraries) tab and I click on Attach Sources. I navigate to the Java class files, which are organised as-received from Sun in the source distribution:
I choose the "classes" folder as shown above, and then click the OK button. Sometimes IntelliJ spends quite some time rebuilding its indices, which gets me all excited and thinking that this time, this time, really it is going to work.
But no. Every time, when I command-click (I'm on the Mac) on a Java class name in my source (say, JTable), I am taken to the precompiled stub version and not to the source. Aaaaarrrrrgggghhhhh!!!!!!!!!!! ?:|
Please can someone help me get these source files available to my IDE?
IntelliJ 9.0.2, if it makes any difference. (And yes, I know there's a new version out, but I am the opposite of an early adopter. "If it ain't broke, don't fix it." I'll update if someone tells me that the above was a known bug in that version and that it has definitely been fixed in the new version ;) )