I have a bug in my IdentifierHighlighter plugin when browsing read-only files that come from the JDK src.zip. For example, if I do a Ctrl+N and bring up JTabbedPane.java source code, my plugin doesn't really work that well. After debugging, it is because ReferencesSearch.search() returns an empty collection. I copied the entire source file for JTabbedPane.java from the src.zip and pasted it into a writable java file that was part of my project. My plugin worked perfectly and ReferencesSearch.search() returned correct results.
Anybody know why I am getting different behavior with ReferencesSearch between a writable source file in my project and a readonly file from JDK src.zip?
Does ReferencesSearch need the file to be writable or something?