Help Needed in getting the model Object of TextEditor [message #1085056] |
Mon, 12 August 2013 11:43  |
Eclipse User |
|
|
|
I have created a custom editor by extending TextEditor class . When I am opening a txt file I need to read the contents of the text file in the "init" method . Can I get the model Object / content of the editor with the "IEditorInput" object or is there some other approach . Kindly provide some advice as I am really stuck on this
|
|
|
Re: Help Needed in getting the model Object of TextEditor [message #1085205 is a reply to message #1085056] |
Mon, 12 August 2013 15:35  |
Eclipse User |
|
|
|
That doesn't make a lot of sense. The editor already loads the contents
of the editor input so why not get the text from the editor's
document? (This isn't a JDT-specific question so better to use the
platform, newcomers, or jface forum.)
On 12/08/2013 3:12 PM, Harikrishna M wrote:
> I have created a custom editor by extending TextEditor class . When I
> am opening a txt file I need to read the contents of the text file in
> the "init" method . Can I get the model Object / content of the editor
> with the "IEditorInput" object or is there some other approach .
> Kindly provide some advice as I am really stuck on this :(
|
|
|
Powered by
FUDForum. Page generated in 0.03245 seconds