Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to get buffer (IBuffer) of a normal text (.txt) file?
How to get buffer (IBuffer) of a normal text (.txt) file? [message #657798] Fri, 04 March 2011 06:49
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi all,

I need to get the underlying buffer of a .txt file to attach a buffer changed listener to it (so that I can listen to the changed that are done on the file before the user actually saves the file). I have the corresponding IFile, however I cannot get the IBuffer using this IFile.
I tried using JavaCore.create(IFile), however since my file is not java-like and not in the build path, it returns null.

So, is there a way to do what I want?
Are there other alternative ways to listen to the buffer of a plain text file?

Thanks in advance, best regards,
Previous Topic:[SOLVED] How to test a subset of all plug-ins (that are being developed)
Next Topic:[SOLVED] How to Use Eclipse Error Dialog with Preference Pages Extension
Goto Forum:
  


Current Time: Fri Apr 19 00:07:42 GMT 2024

Powered by FUDForum. Page generated in 0.01571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top