Reputation: 259
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 also it should not system specific)?
Upvotes: 2
Views: 260
Reputation: 1329122
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
.
Upvotes: 1