title: eclipse workspace is closed problem
body: <p>How to get access to eclipse workspace from java program.
  When I use <code>IWorkspace workspace = ResourcesPlugin.getWorkspace().getRoot()</code> it gives me exception like this</p>
  
  <pre><code>java.lang.IllegalStateException: Workspace is closed.
    at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:329)
    at amdocs.amsp.test.EMFCodeGen.load(EMFCodeGen.java:37)
    at amdocs.amsp.test.EMFCodeGen.main(EMFCodeGen.java:26)
  </code></pre>
  
  <p>can you tell me how to get access to workspace from a standalone java program out side of eclipse. (of ourse there is a classpath with all the jar required for that)</p>