title: How to create IProject without Eclipse
body: <p>I'm trying to mavenize a third part Eclipse's plugin,
  but I need to create an instance of IProject to pass at <code>JavaCore.create(instance)</code> to obtain an instance of IJavaProject.</p>
  
  <p>This application will not have workspace and will be better that depends from eclipse's libraries as less as I can.</p>
  
  <p>So I can't use:</p>
  
  <pre><code>ResourcesPlugin.getWorkspace().getRoot().getProject(...);
  </code></pre>
  
  <p>When I try to start my program I have this error report:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: Workspace is closed.
      at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:367)
      at gr.uom.java.jdeodorant.helpers.JavaProjectHelper.createJavaProject(JavaProjectHelper.java:55)
      at gr.uom.java.jdeodorant.refactoring.actions.Index.initializeJavaProject(Index.java:28)
      at gr.uom.java.jdeodorant.refactoring.actions.Index.main(Index.java:53)
  </code></pre>
  
  <p>So is there any way to create this instance outside Eclipse, just passing the path of the project that I need?
  Some ideas?</p>