title: Python: Import Source Code into Eclipse
body: <p>I've recently started using <code>eclipse</code> for my class over <code>IDLE</code>. So far I have no problems writing new code and creating new projects in eclipse.</p>
  
  <p>However, when I open older code that was not originally written in my current project, eclipse seems to only open it as a text file. </p>
  
  <p>For example, when I want to run a piece of code, I get a popup asking for an ANT build instead of running it using <code>pydev</code>. Also the code will not show up in the <code>pydev package explorer</code>.</p>
  
  <p>How do I go about importing the <code>source code</code> into my project so <code>eclipse</code> will treat it as such. </p>