Rahul
Rahul

Reputation: 259

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 also it should not system specific)?

Upvotes: 2

Views: 260

Answers (1)

VonC
VonC

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

Related Questions