How to create IFile object, than is not in project [message #127209] |
Thu, 11 September 2003 08:28 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: hurricane.ukr.net
I need to create IFile. But
ResourcesPlugin.getWorkspace().getRoot().getFile (IPath) returns a file,
but when I get its IPath it shows the location withot a drive (Win32 OS).
ResourcesPlugin.getWorkspace().getRoot().getFileForLocation( IPath) in this
case just returns null.
When I trying to do something like
ResourcesPlugin.getWorkspace().getRoot().getFile
(IPath).createLink(path,0,null) I have an exception that file must be
inside of project.
How can I get file by IPath, so I will be accessible?
Thanks
|
|
|
Re: How to create IFile object, than is not in project [message #127384 is a reply to message #127209] |
Thu, 11 September 2003 13:28 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.megert.gmx.net
IFile(s) need to be contained in an IProject.
Dani
Hurricane wrote:
>I need to create IFile. But
>ResourcesPlugin.getWorkspace().getRoot().getFile (IPath) returns a file,
>but when I get its IPath it shows the location withot a drive (Win32 OS).
> ResourcesPlugin.getWorkspace().getRoot().getFileForLocation( IPath) in this
>case just returns null.
>When I trying to do something like
>ResourcesPlugin.getWorkspace().getRoot().getFile
>(IPath).createLink(path,0,null) I have an exception that file must be
>inside of project.
>How can I get file by IPath, so I will be accessible?
>
>Thanks
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02922 seconds