Accepted practice for obtaining files from a project [message #139621] |
Wed, 22 February 2006 15:57 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07913 seconds