Skip to main content



      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 10:01 Go to next message
Eclipse UserFriend
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 10:02 Go to previous messageGo to next message
Eclipse UserFriend
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 06:46 Go to previous messageGo to next message
Eclipse UserFriend
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 06:59 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to get path of project inside the workspace [message #371635 is a reply to message #336912] Wed, 29 July 2009 02:19 Go to previous messageGo to next message
Eclipse UserFriend
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 07:11 Go to previous message
Eclipse UserFriend
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: Fri Apr 25 22:19:58 EDT 2025

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

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

Back to the top