Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Re: Get Files from Package Explorer
Re: Get Files from Package Explorer [message #315257] Mon, 07 May 2007 05:17
Eclipse UserFriend
Originally posted by: yogesh.arora.daffodil.gmail.com

You can do this way:--------

if(selection instanceof IStructuredSelection) {
Object objects[] = ((IStructuredSelection) selection).toArray();
}
and From this Object Array you can get the IJavaElement in this way:-
IJavaElement javaElement = (object[i] instanceof IJavaElement ? (IJavaElement) object[i]
: null);

and from this javaelement you can get the File and related Info

Regards,
Yogesh Arora
Previous Topic:Only a part of an image shows up
Next Topic:Access to FileSearchQuery (or similar)
Goto Forum:
  


Current Time: Sun Nov 09 04:38:09 EST 2025

Powered by FUDForum. Page generated in 0.03566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top