Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How can I get all IFile from a IProject ?
How can I get all IFile from a IProject ? [message #175119] Wed, 25 August 2004 12:50 Go to next message
Eclipse UserFriend
Originally posted by: esalbuquerque.hotmail.com

How can I get all IFile from a IProject ?

For example:
//********************
unit = null;
wbp = window.getActivePage();
edt = wbp.getActiveEditor();
ei = edt.getEditorInput();
mgr = JavaUI.getWorkingCopyManager();
try {
mgr.connect(ei);
unit = mgr.getWorkingCopy(ei);
IProject project = (IProject)unit.getResource().getProject();

// HOW ??????

} catch (Throwable e) {
e.printStackTrace();
} finally {
mgr.disconnect(ei);
}
Re: How can I get all IFile from a IProject ? [message #175230 is a reply to message #175119] Wed, 25 August 2004 16:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

project.members()

--
Thanks, Rich Kulp

Re: How can I get all IFile from a IProject ? [message #175288 is a reply to message #175230] Thu, 26 August 2004 03:34 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Rich Kulp wrote:

> project.members()
>
Note: this gives you only the direct IFiles. To get all files you have
to collect all files. If you don't actually need all files or not the
file itself (e.g. only its name) then it is much faster to do this with
an IResourceProxyVisitor.

HTH
Dani
Previous Topic:[ANN] v2.1 - SWT Designer, Swing Designer & WindowBuilder
Next Topic:javadoc integration
Goto Forum:
  


Current Time: Sun May 11 19:26:27 EDT 2025

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

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

Back to the top