更新时间:2023-02-20 20:43:19
您应该能够通过编写一个小的Eclipse插件来完成此任务。您甚至可以将其扩展为无头RCP应用程序,并传递您需要的命令行参数。
You should be able to accomplish this by writing a small Eclipse plugin. You could even extend it out to being a "headless" RCP app, and pass in the command line arguments you need.
创建项目的准系统代码是: / p>
The barebones code to create a project is:
IProgressMonitor progressMonitor = new NullProgressMonitor();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject("DesiredProjectName");
project.create(progressMonitor);
project.open(progressMonitor);
只需查看导入项目向导的eclipse代码,让您更好地了解哪里一起去吧。
Just take a look at the eclipse code for the Import Project wizard to give you a better idea of where to go with it.