|

06-30-2009, 03:22 AM
Hi bhanu:
I hope this section of code could help you out:
IStructuredSelection selection;
String projectName;
……
if (selection instanceof IStructuredSelection) {
Object o = selection.getFirstElement();
If(o instanceof IProject){
IProject project = (IProject) o;
projectName = project.getName();
}
}
|