How to check the current Eclipse workspace and project in this workspace using a java program?
you can try this code to get the current workspace.
IWorkspace workspace = ResourcesPlugin.getWorkspace(); IWorkspaceRoot root = workspace.getRoot(); IPath location = root.getLocation();