I want to access the projects of my workspace using Iworkspace and Iprojects but I am unable to do so as workspace it returning no projects I am using this code:
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject projects = workspace.getRoot().getProjects();
but it is retuning 0 projects although , i am having projects in my workspace.
Can someone tell me where i am going wrong
Thanks in advance