Rahul
Rahul

Reputation: 259

how to check the current workspace of Eclipse and the project on that workspace using java program?

how to check the current workspace of Eclipse and the project on that workspace using java program?

Upvotes: 3

Views: 4000

Answers (1)

GuruKulki
GuruKulki

Reputation: 26428

you can try this code to get the current workspace.

IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IPath location = root.getLocation();

Upvotes: 3

Related Questions