Close
jGuru Forums
Posted By: Alex_Tchumel Posted On: Friday, November 4, 2005 04:11 AM
How can I get an IFile for a file outside the workspace? In other words - how can I open non-project file in editor programmatic way? Assume I have a some file and want to do something like this -
File file; IFile myIFile = getIFile(file); openEditor(new EditorInput(myIFile), "MyEditorID"));
Yes, I read answer here http://eclipsewiki.editme.com/PDEFaq but it didn't satisfy me. Starting Eclipse 3.0 it is possible to open any file in editor regardless of is this file in the project or not (File->Open File...). Eclipse Platform can do it. Why I can't? Seems that it must be common and very usefull feature.
Thanks in advance.
Re: How can I get an IFile for a file outside the workspace?
Posted By: Anonymous Posted On: Wednesday, November 9, 2005 11:40 AM