dcsimg
How can I get an IFile for a file outside the workspace?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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. Th   More>>

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.

   <<Less

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

have you found a suitable solution ?
best regards roland
About | Sitemap | Contact