Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to create IFile object, than is not in project
How to create IFile object, than is not in project [message #127209] Thu, 11 September 2003 08:28 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
>
>
>
Previous Topic:Editing read-only-files in M3
Next Topic:Does Eclipse/Mac support java.awt package?
Goto Forum:
  


Current Time: Sat Aug 17 19:18:34 GMT 2024

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

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

Back to the top