Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It is possible by first cloning the repository and then creating a General project based on that. Then you can convert it to Java project. Here is how:</p> <ul> <li>First go to <code>File</code>><code>Import...</code>><code>Projects from GIT</code>.</li> <li>In the <code>Select a Git Repository</code> view you first press <code>Clone</code>. And follow instructions. This will create a local "checkout" of the repository to your computer. You can set the folder to be your workspace so it looks like any other of your eclipse projects. </li> <li>After you have cloned the repository you get back to <code>Import</code>-view. Now you can select the repository you just cloned from the list. </li> <li>Click <code>Next</code> and select <code>Import as General Project</code>. Now you have a git repository to eclipse. </li> <li>Convert it to Java project: Add <code>nature</code> and <code>buildCommand</code> elements from other Java project to your <code>.project</code> file:</li> </ul> <p>Relevant sections from <code>.project</code>:</p> <pre><code>&lt;buildSpec&gt; &lt;buildCommand&gt; &lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt; &lt;arguments&gt; &lt;/arguments&gt; &lt;/buildCommand&gt; &lt;/buildSpec&gt; &lt;natures&gt; &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt; &lt;/natures&gt; </code></pre> <p>Then from Project>Properties>Java Build Path>Source add your source folders (and possible libraries).</p> <p>Edit: Added the conversion to Java project.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload