title: Why eclipse doesn't show all references in workspace?
body: <p>In Eclipse Helios I have 3 classes all in the same project which is in the same workspace.</p>
  
  <p>The classes are ("path" and "location" found in properties dialogue of each class)</p>
  
  <pre><code>A
  path: /myproject/src/a/A.java
  location: /home/me/dev/myrepo/somefolder/myproject/src/a/A.java
  
  R1
  path: /myproject/src/b/R1.java
  location: /home/me/dev/myrepo/somefolder/myproject/src/b/R1.java
  
  R2
  path: /myproject/src/b/R2.java
  location: /home/me/dev/myrepo/somefolder/myproject/src/b/R2.java
  </code></pre>
  
  <p><code>A</code> has a method <code>f</code>, which is used by methods in both <code>R1</code> and <code>R2</code>.</p>
  
  <p>If, with mouse over method <code>f()</code> of <code>A</code>, I do <code>right click -&gt; References -&gt; Workspace (Shift+Ctrl+G)</code> or <code>right click -&gt; References -&gt; Project</code>, it only shows <code>R1</code> in the results pane.</p>
  
  <p>What could any possible reasons for this be? Are there any configurations I should change? I use grep and I can find both references. Perhaps Eclipse does something ghetto like using grep underneath and doesn't actually analyse the source code?</p>
  
  <p>I already tried refreshing the project (in case you're thinking I edited <code>R2</code> outside of Eclipse), didn't help.</p>
  
  <hr>
  
  <p>I can't post the real source because it's super secret. Here is some equivalent source (though the problem didn't happen with these ones):</p>
  
  <p>A.java</p>
  
  <pre><code>package a;
  
  public class A {
      public void f() {}
  }
  </code></pre>
  
  <p>R1.java</p>
  
  <pre><code>package b;
  import a.A;
  
  
  public class R1 {
      void f() {
          new A().f();
      }
  }
  </code></pre>
  
  <p>R2.java</p>
  
  <pre><code>package b;
  import a.A;
  
  
  public class R2 {
      void f() {
          new A().f();
      }
  }
  </code></pre>