How to create IFile object, than is not in project [message #127209] |
Thu, 11 September 2003 04:28  |
Eclipse User |
|
|
|
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 09:28  |
Eclipse User |
|
|
|
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.03549 seconds