Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

eclipse

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

like image 716
Rahul Avatar asked Nov 28 '25 22:11

Rahul


1 Answers

you can try this code to get the current workspace.

IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();
IPath location = root.getLocation();
like image 78
GuruKulki Avatar answered Dec 01 '25 10:12

GuruKulki