[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: How to construct an IFile?

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?