Programmatically importing an existing project into Eclipse

前端 未结 4 1092
时光说笑
时光说笑 2020-12-14 03:55

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:

<         


        
4条回答
  •  甜味超标
    2020-12-14 04:33

    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());

提交回复
热议问题