title: XTEND/JAVA automatic eclipse project generation
body: <p>I have a XText project within Eclipse, with my own grammar file implemented. Using the <strong>doGenerate</strong> function I generate several .java files. So far everything works like a charm.</p>
  
  <p>My problem is that every time I generate my files I need to do the following:</p>
  
  <ol>
  <li>Copy the generated files to my Eclipse projects directory</li>
  <li>Create a new Java project in Eclipse</li>
  <li>Import the generated files to the project</li>
  </ol>
  
  <p>I would like to be able to make any or all of these steps automatic every time the doGenerate function is called, <strong>so is there a way to do just that with xtend/java code</strong>? I should mention that my grammar requires the user to specify the project directory + name, so that info is available at runtime from within the doGenerate function.</p>
  
  <p>The code should preferably be able to detect if there is already a project with the same name, and update it's contents within the open Eclipse instance at runtime if such a thing is possible.</p>
  
  <p>Alternatively, if this cannot be done with xtend/java, can this be done with a plugin?</p>