How to check the current Eclipse workspace and the project on this workspace using a java program?

How to check the current Eclipse workspace and project in this workspace using a java program?

+3
source share
1 answer

you can try this code to get the current workspace.

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

All Articles