Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

How to get the source Location ?

Thread view: 
vpennella@gmail.com - 11 Nov 2005 19:16 GMT
Hello !!!

            I  have a IProject that is return when I execute
resource.getProject().

            But I need the path of the source folder of the project.
¿ How can I get the location of the source folder ? If someboby knows
it, please respond me the message.

Thanks,
Valeria.
Oliver Wong - 11 Nov 2005 21:04 GMT
> Hello !!!
>
[quoted text clipped - 7 lines]
> Thanks,
> Valeria.

   It's in the IProjectDescription. Get the description from the project,
then get the IPath from the description.

   - Oliver
Andrew Thompson - 12 Nov 2005 01:37 GMT
>              But I need the path of the source folder of the project.

Why?  <http://www.physci.org/codes/javafaq.jsp#path>
Oliver Wong - 14 Nov 2005 15:27 GMT
>>              But I need the path of the source folder of the project.
>
> Why?  <http://www.physci.org/codes/javafaq.jsp#path>

   The OP's question was poorly phrased. (S)he is working with the Eclipse
API, and (s)he means to access the source folder of the project currently
highlighted or selected or whatever in Eclipse, so that his/her plugin can
perform some voodoo magic on it. (S)he did not intend to get the path of the
currently running application or anything like that.

   I recognized it as an Eclipse question because of the APIs mentioned
(IProject.getResource()), but the OP would do well to specify, next time,
that their question was related to Eclipse, and not just the broad world of
Java in general.

   - Oliver
Andrew Thompson - 14 Nov 2005 16:24 GMT
..
>     I recognized it as an Eclipse question because of the APIs mentioned
> (IProject.getResource()), but the OP would do well to specify, next time,

When posting their Eclipse question to the Eclipse forums?
<http://www.eclipse.org/newsgroups/index.html>

> that their question was related to Eclipse,

..I think there, they may pretty well *assume* it is
to do with Eclipse.   ;-)
Oliver Wong - 14 Nov 2005 16:43 GMT
> ..
>>     I recognized it as an Eclipse question because of the APIs mentioned
[quoted text clipped - 7 lines]
> ..I think there, they may pretty well *assume* it is
> to do with Eclipse.   ;-)

   Sorry, let me rephrase: Next time the OP (or anyone else for that
matter) wants to post a question about the Eclipse API on
comp.lang.java.programmer, they should specify that their question is about
the Eclipse API, and not about Java programming in general.

   Preferably mention "Eclipse API" in the subject line, so people who
don't know/don't care about the Eclipse API can skip the message.

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.