Skip to main content



      Home
Home » Newcomers » Newcomers » How to construct an IFile?
How to construct an IFile? [message #109916] Tue, 18 October 2005 11:49 Go to next message
Eclipse UserFriend
Originally posted by: eric.widhalm.usda.gov

How does one create an IFile? The only way I've found so far is to use
WizardNewFileCreationPage to create a file, but if the file is already
there, I don't want to create it.

new Path("file/path").toFile() gives me a java.io.File, not an IFile.
Help?
Re: How to construct an IFile? [message #111932 is a reply to message #109916] Tue, 25 October 2005 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

ResourcesPlugin.getWorkspace().getRoot().getFile(new
Path("ProjectName/folder/file.txt");
--

Eric wrote:
> How does one create an IFile? The only way I've found so far is to use
> WizardNewFileCreationPage to create a file, but if the file is already
> there, I don't want to create it.
>
> new Path("file/path").toFile() gives me a java.io.File, not an IFile.
> Help?
>
Previous Topic:JFACE - src
Next Topic:problem with slow ant builds
Goto Forum:
  


Current Time: Sun Jul 27 14:26:38 EDT 2025

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

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

Back to the top