I am trying to importing the project to eclipse through programmatically. I dont want to use UI mode.
Below is the code I used for importing the project:
<
Your code seems to be fine. What do you exactly mean by you couldn't get the source folder? Have you tried to refresh the project?
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());