开发者

Check the project availability in current workspace of eclipse?

开发者 https://www.devze.com 2023-02-18 12:02 出处:网络
Using java program how to check that particular project (eq DemoProject) is available in current workspace of eclipse (the program should work on any machines al开发者_高级运维so it should not system

Using java program how to check that particular project (eq DemoProject) is available in current workspace of eclipse (the program should work on any machines al开发者_高级运维so it should not system specific)?


If you are talking about a Java program running from within Eclipse itself, as a plugin, you can try getting the project with:

 ResourcesPlugin.getWorkspace().getWorkspaceRoot().getProject("projectName")

, using the org.eclipse.core.resources.IWorkspaceRoot and test that resource (the org.eclipse.core.resources.IProject.

0

精彩评论

暂无评论...
验证码 换一张
取 消