How to get current project's name and path [message #322730] |
Tue, 27 November 2007 10:48  |
Eclipse User |
|
|
|
Originally posted by: noyanculum.yahoo.com
Hello all,
I'm writing a plugin for Eclipse and since somedays i'm searching how to
get current project's name and full path (i.e.
C:\...\workspace\projectname).
I've read all articles and all emails and i tried all codes given but
unfortunately no success no success.
Please kindly can anyone give me a working solution. I think i need
dependencies, import declerations lines and codeline.
Any help will be really very very appreciated.
Thanx in advance.
Best Regards,
Ran
|
|
|
|
|
|
|
Re: How to get current project's name and path [message #322746 is a reply to message #322744] |
Tue, 27 November 2007 17:16   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Noyan,
Perhaps the resource doesn't actually exist or something else is wrong?
The getLocationURI is more general, you might try that. If these are
both returning null there's likely something going on you've not told us
about.
Noyan wrote:
> Dear Ed,
>
> I saw, yes you have reason, there is getLocation() method here. Than i
> tried different uses with this, for example:
>
>
> org.eclipse.core.resources.IResource iresource;
> System.out.println(iresource.getLocation());
>
>
> But this returns a null response, so unfortunately, i can't find the
> exact code solution with this (and others) suggestion. If you (or
> anotherone) can kindly give me a working codeline, it will be really
> very appreciated.
>
> Thanx again.
> Ran
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04287 seconds