title: F3 doesn't work in Eclipse for Scala-Java mixed JARs
body: <p>I am unable to use F3 and other Eclipse controls when I am working with Scala code in Eclipse.</p>
  
  <p>To reproduce this issue:</p>
  
  <ol>
  <li><p>Create a new Maven project with the Spark job archetype (from here: <a href="https://github.com/jjmeyer0/spark-java-archetype" rel="nofollow noreferrer">https://github.com/jjmeyer0/spark-java-archetype</a>)</p></li>
  <li><p>Import the project into Eclipse (as existing Maven project), and add the following dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
      &lt;artifactId&gt;spark-core_2.11&lt;/artifactId&gt;
      &lt;version&gt;2.2.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
      &lt;artifactId&gt;spark-mllib_2.11&lt;/artifactId&gt;
      &lt;version&gt;2.2.0&lt;/version&gt;
      &lt;scope&gt;runtime&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
      &lt;artifactId&gt;scala-library&lt;/artifactId&gt;
      &lt;version&gt;2.11.11&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
      &lt;artifactId&gt;scala-reflect&lt;/artifactId&gt;
      &lt;version&gt;2.11.11&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
      &lt;artifactId&gt;scala-compiler&lt;/artifactId&gt;
      &lt;version&gt;2.11.11&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre></li>
  </ol>
  
  <p>Now, from the generated code in <code>App.java</code>, if I try to do an F3 on <code>sc.parallelize</code> the <code>JavaSparkContext.class</code> file opens up, but not on the function <code>parallelize</code>. Also, F3 doesn't seem to work within the class.</p>
  
  <p>I tried looking at the code on Spark Github, and I realized that F3 seems to work well within for <code>.class</code> files whose sources are in <code>src/main/java</code> <a href="https://github.com/apache/spark/tree/master/core/src/main/java/org/apache/spark/api/java" rel="nofollow noreferrer">https://github.com/apache/spark/tree/master/core/src/main/java/org/apache/spark/api/java</a> but not in <code>src/main/scala</code> <a href="https://github.com/apache/spark/tree/master/core/src/main/scala/org/apache/spark/api/java" rel="nofollow noreferrer">https://github.com/apache/spark/tree/master/core/src/main/scala/org/apache/spark/api/java</a></p>
  
  <p>So, my question is, how do I set up Eclipse to correctly use F3 with Spark JARs?</p>