How can I create a new Eclipse Project programatically just by calling a method in my Java class or something like that? Here I found a solution, but when I add this code, I get the following error:
IProject cannot be resolved to a type
This is my code:
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
if (!project.exists()) {
project.create(monitor);
project.open(monitor);
}
I found also another answer here, but still the details are not clear for me. Could you please tell me how can I do it perhaps in some easy to follow steps?