title: Eclipse Luna does not find references to Java elements
body: <p>In the Java editor I right-click on a method name or class name or other element (defined in my source, not in a dependency JAR) and from the menu I select References / Workspace.</p>
  
  <p>In some cases the references to such elements are found and shown in the Search view as expected. But in most cases no reference is found, which I know is wrong because those elements are definitely referenced by some code in projects found in the workspace (and if I do a File search they are always found, and if I Ctrl-click on the reference, f.ex. a method call, I'm taken to the method body as expected).</p>
  
  <p>It makes no difference if instead of using the menu item References / Workspace I select the element in the code and hit Ctrl+Shift+G, or right-click on the element in the Outline view and use the menu item References / Workspace from there.</p>
  
  <p>No project in the workspace has compilation errors and all the projects run normally.
  The projects are all set to use Java 7 JDK ("C:\glassfish4\jdk7").</p>
  
  <p>In another post about Juno I found mentions to an Index Rebuild feature, but I couldn't find anything index-related in Luna preferences.</p>
  
  <p>When I was using Eclipse Kepler instead of Luna I was searching for references in exactly the same ways and the references were always found correctly. Actually this problem occurred with Kepler too for a short period but then it went away and I never understood why. But now with Luna this problem is there since the beginning and it seems to be there to stay.</p>
  
  <p>The version of Luna is 4.4.0.I20140606-1215. I added to it the same  plugins I had in Kepler: Subclipse, TapestryTools, FindBugs, ResourceBundle Editor, TestNG.</p>
  
  <p>I could not find any Preferences setting that appears to me to be affecting this.</p>
  
  <p>I'm wondering if other people are experiencing the same problem and if there is a known cause, solution or workaround.</p>
  
  <p>UPDATE 2015-08-21: Switched to Eclipse Mars (added same plugins), problem still there.</p>
  
  <p>UPDATE 2016-07-27: Switched to Eclipse Neon (added same plugins), problem seems no longer there. It's been less than a month though, so I'll wait a few months before I celebrate, also because the <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108749" rel="nofollow">bug</a> on eclipse.org is still in status "new" and doesn't mention any solution (or anything else at all since 10 months). If I notice the problem again I will update here.</p>