|How can I get an ITextFileBuffer given a IFileStore? [message #304845]
||Thu, 15 June 2006 21:29
| Oliver Wong
Registered: July 2009
Sorry if this is posted to the wrong newsgroup. I couldn't find one |
which is specific to the Eclipse resource API.
Basically, I'd like to use the new Eclipse File System (EFS) along with
ITextFileBuffers. I can't find a way to do this, however.
When using the EFS, it looks like I'm supposed to use the fileSystem's
getStore(URI) method to get an instance of IFileStore which represents a
file in some file system. From here, I don't know what I'm supposed to do to
get an ITextFileBuffer representing the contents of that file.
Before EFS, I'd use the FileBuffers facade to get the
TextFileBufferManager. I could then call the getTextFileBuffer(IPath) method
to get an ITextFileBuffer (being sure to connect to the resource pointed by
the IPath first).
So how can I get an ITextFileBuffer given a IFileStore?
Powered by FUDForum
. Page generated in 0.03287 seconds