title: Launch Eclipse project from plugin
body: <p>I want to make a Eclipse plugin where I can run and/or debug a project as Java Application but with some customization.</p>
  
  <p>The project application instantiates an engine which I want to access with my own "debugger application". I imagine it would work similar to the default eclipse debugger.</p>
  
  <p>However I only find articles about launch configurations and not how to actually launch the program. The closest I got is <a href="https://stackoverflow.com/questions/13251153/new-launching-button-run-as-in-eclipse">this</a> which doesn't have any proper answer.</p>
  
  <p>I also tried to search the Eclipse sourcecode to see if I could find the right method, but there are so many repositories that it's impossible to find what you need.</p>
  
  <p>So what I want to know is how to customize the "Run as Java application" functionality. How can i start the project application in one thread and in another thread start my own application with a reference to the project application?</p>
  
  <p>Hope you clever people of the world have an awesome answer!</p>