Check the project availability in current workspace of eclipse?
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
.
精彩评论