Quote:
Originally Posted by bnoam
Hello,
It is known that [the] eclipse default text editor lack of support to read huge files. It reads the entire file into a string buffer and then creates a document out of it.
|
It's actually worse. I did some tests on Eclipse 3.2, and depending on what you were doing in the text editor, there were as many as 5 copies of the edited file in memory.
I don't think that the memory usage has improved that much through Eclipse 3.5.
Quote:
Originally Posted by bnoam
My question is if there is a text editor in Eclipse that support paging of file? meaning - a user opens a huge file, but only the part that he currently sees is loaded into the memory, and he doesn't feel that only part of the file is loaded.
If not, I would like some tips for where to get started in writing such editor my self. I have good knowledge of PDE and wrote a few plugins, but this problem seems to be more complicated. Moreover, the files I want to be able to open are not in the local workspace, but outside of it, so I am using IFileStore as a resource, FileStoreEditorInput as an IEditorInput and TextFileDocumentProvider as provider
Thanks a lot !
|
I think
SlickEdit has an Eclipse editor that can better handle large files.
As far as writing your own, good luck.
The classes that are derived from IDocument are so interrelated, that you're going to have to build your editor from the ground up.
I've been working on and off creating an ISPF-style Eclipse editor, and it's been a massive undertaking.