Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Help Needed in getting the model Object of TextEditor(Need help in getting content of a custom Text Editor with IEditorInput object)
Help Needed in getting the model Object of TextEditor [message #1085056] Mon, 12 August 2013 11:43 Go to next message
Eclipse UserFriend
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 Sad
Re: Help Needed in getting the model Object of TextEditor [message #1085205 is a reply to message #1085056] Mon, 12 August 2013 15:35 Go to previous message
Eclipse UserFriend
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 :(
Previous Topic:Realize Objects.hashCode() and Objects.equals(...) implementation of Java 7 within eclipse
Next Topic:Eclipse Crashing Upon Entering a Workspace?
Goto Forum:
  


Current Time: Sat Feb 08 04:21:25 GMT 2025

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

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

Back to the top