I am currently having all project names in my workspace like this.
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
Is there a way to get project name which currently open in the editor or selected one without using ISelection or IStructuredSelection.