Skip to main content



      Home
Home » Newcomers » Newcomers » Accepted practice for obtaining files from a project
Accepted practice for obtaining files from a project [message #139621] Wed, 22 February 2006 15:57
Eclipse UserFriend
Originally posted by: chrisadrake.hotmail.com

I am having some trouble determining what the accepted practice is for
obtaining references to files that are in the same project as a file that
is currently being used in a TextEditor object. I am trying to parse all
the project files and use their contents to populate a code completion
proposal.

I have so far been able to determine how you can get access to files in
the project through the IWorkspace and IProject but you have to know the
name or location of the project or a file. I figure that I must need to
obtain the location of the file in the TextEditor and use that to
determine the project that is in use and use IProject to get the other
files. This seems very convoluded so perhaps I am making things too hard.
I have noticed that when you build java projects eclipse looks at all open
projects so is the practice to parse all files across all open projects
and let the user beware??

Thanks,
Chris
Previous Topic:"Network connection problems encountered during search"
Next Topic:eclipse with tomcat...help..
Goto Forum:
  


Current Time: Sun Jun 08 01:33:17 EDT 2025

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

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

Back to the top