Reputation: 259
how to check the current workspace of Eclipse and the project on that workspace using java program?
Upvotes: 3
Views: 3999
Reputation: 26418
you can try this code to get the current workspace.
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IPath location = root.getLocation();
Upvotes: 3