View Single Post
  (#2 (permalink)) Old
oxygold oxygold is offline
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 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();
}
}


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote