Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get project path inside the workspace
How to get project path inside the workspace [message #336893] Fri, 10 July 2009 14:01 Go to next message
Shrijeet is currently offline Shrijeet
Messages: 14
Registered: July 2009
Junior Member
I know how to get path of the workspace. However I am not able to find how
to get the relative path of the project inside the workspace?? Need help
on this!!

Thanks in advance.
Re: How to get path of project inside the workspace [message #336894 is a reply to message #336893] Fri, 10 July 2009 14:02 Go to previous messageGo to next message
Shrijeet is currently offline Shrijeet
Messages: 14
Registered: July 2009
Junior Member
Sorry for spamming.
Re: How to get path of project inside the workspace [message #336911 is a reply to message #336894] Mon, 13 July 2009 10:46 Go to previous messageGo to next message
Shrijeet is currently offline Shrijeet
Messages: 14
Registered: July 2009
Junior Member
Can anyone please help me on this???
Re: How to get path of project inside the workspace [message #336912 is a reply to message #336911] Mon, 13 July 2009 10:59 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Shrijeet wrote:
> Can anyone please help me on this???

As with any IResource, use IResource.getFullPath(). This will be
the path in the workspace, for its on-disk location you'd use
IResource.getLocation()--which can return null for perfectly valid
reasons.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to get path of project inside the workspace [message #371635 is a reply to message #336912] Wed, 29 July 2009 06:19 Go to previous messageGo to next message
Shrijeet is currently offline Shrijeet
Messages: 14
Registered: July 2009
Junior Member
Nitin Dahyabhai wrote:

> Shrijeet wrote:
>> Can anyone please help me on this???

> As with any IResource, use IResource.getFullPath(). This will be
> the path in the workspace, for its on-disk location you'd use
> IResource.getLocation()--which can return null for perfectly valid
> reasons.

Thanks nitin.. Got it working.
Re: How to get path of project inside the workspace [message #492677 is a reply to message #371635] Wed, 21 October 2009 11:11 Go to previous message
Rohan  is currently offline Rohan
Messages: 12
Registered: October 2009
Junior Member
Shrijeet, can you please let me know how you solved the problem? Because even i am facing the same problem.
Previous Topic:Common Navigator programmatically toggle filter
Next Topic:Hooking into "Team -> Create Patch..."?
Goto Forum:
  


Current Time: Thu Oct 23 19:17:40 GMT 2014

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

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