title: Can I generate eclipse workspace and project manually/programmatically?
body: <p>I need to test JDT/LTK examples, and in order to do so I need to create eclipse workspace and project manually or programmatically. </p>
  
  <p>How can I organize a directory so that I can get valid workspace and project object? I mean, what's special about eclipse workspace and project?</p>
  
  <pre><code>IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
  // 1. The name of the project in the workspace
  IProject project = root.getProject("Hello");
  project.open(null /* IProgressMonitor */);
  
  IJavaProject javaProject = JavaCore.create(project);
  // 2. The name of the Type (including the namespace)
  IType itype = javaProject.findType("smcho.A");
  </code></pre>