Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Path resolution in Eclipse
Path resolution in Eclipse [message #121809] Tue, 25 November 2003 13:14 Go to next message
Eclipse UserFriend
Originally posted by: meshcheryakovsemen.hotmail.com

How to determine if the absolute path is workspace- or filesystem-absolute?

For example,
<classpathentry kind="lib" path="/lib/xml-apis.jar"/>

Thanks,
-- Sam
It's better to view source code than comments to it.
Re: Path resolution in Eclipse [message #122202 is a reply to message #121809] Wed, 26 November 2003 05:23 Go to previous messageGo to next message
Eclipse UserFriend
Use IWorkspaceRoot.findMember(IPath). If it returns a non null value, then
the path is a workspace path.

Jerome

"smesh" <meshcheryakovsemen@hotmail.com> wrote in message
news:bq061s$vqs$1@eclipse.org...
> How to determine if the absolute path is workspace- or
filesystem-absolute?
>
> For example,
> <classpathentry kind="lib" path="/lib/xml-apis.jar"/>
>
> Thanks,
> -- Sam
> It's better to view source code than comments to it.
>
>
Re: Path resolution in Eclipse [message #123514 is a reply to message #122202] Mon, 01 December 2003 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: meshcheryakovsemen.hotmail.com

Jerome,

I've explored some sources:
- IContainer.findMember(IPath) (not IWorkspaceRoot:)
- JavaModel.getTarget(IContainer container, IPath path, boolean
checkResourceExistence)
- http://dev.eclipse.org/bugs/show_bug.cgi?id=22517

It seems that path (url, uri, etc.) concept in Eclipse 2.x is not well
formalized.
I had no time to start with Eclipse 3.x yet. Will it overcome this gap?

Thanks,
-- Sam
It's better to view source code than comments to it.

"Jerome Lanneluc" <jerome_lanneluc@fr.ibm.com> wrote in message
news:bq1uqq$r22$1@eclipse.org...
> Use IWorkspaceRoot.findMember(IPath). If it returns a non null value, then
> the path is a workspace path.
>
> Jerome
Re: Path resolution in Eclipse [message #123700 is a reply to message #123514] Tue, 02 December 2003 07:08 Go to previous message
Eclipse UserFriend
I'm not sure what is not well formalized. Please post to eclipse.platform if
you find that IPath is confusing.

> It's better to view source code than comments to it.
Or you can see the source :-)

Jerome

"smesh" <meshcheryakovsemen@hotmail.com> wrote in message
news:bqgg2c$598$1@eclipse.org...
> Jerome,
>
> I've explored some sources:
> - IContainer.findMember(IPath) (not IWorkspaceRoot:)
> - JavaModel.getTarget(IContainer container, IPath path, boolean
> checkResourceExistence)
> - http://dev.eclipse.org/bugs/show_bug.cgi?id=22517
>
> It seems that path (url, uri, etc.) concept in Eclipse 2.x is not well
> formalized.
> I had no time to start with Eclipse 3.x yet. Will it overcome this gap?
>
> Thanks,
> -- Sam
> It's better to view source code than comments to it.
>
> "Jerome Lanneluc" <jerome_lanneluc@fr.ibm.com> wrote in message
> news:bq1uqq$r22$1@eclipse.org...
> > Use IWorkspaceRoot.findMember(IPath). If it returns a non null value,
then
> > the path is a workspace path.
> >
> > Jerome
>
>
Previous Topic:Unable to refere to classes in other project.
Next Topic:is it possible to adjust the Console's buffer?
Goto Forum:
  


Current Time: Wed Jul 23 10:42:38 EDT 2025

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

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

Back to the top