| [news.eclipse.platform] Re: Refresh resource after external alteration to file |
--
- Prakash
Eclipse Tips: http://blog.cypal-solutions.com Eclipse Search: http://www.cypal.in/eclipsesearch
Hi,
I have code that has to save via a path (String). So, I create my own FileOutputStream that writes the file to the workspace (not via IFile), and close the stream. The workspace is obviously not aware of this, and I need to hit refresh before using the file (I use a CommonNavigator). Is there some way I can locate the file in the workspace by name or external (non-workspace) path, so I can get a handle to the IFile and call "refresh" programmatically? Or could someone recommend another strategy so that the resource is refreshed automatically on external modification?
Cheers,
.../Ola