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
Harikrishna M is currently offline Harikrishna MFriend
Messages: 3
Registered: August 2013
Junior Member
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
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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 :(


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Thu Apr 25 18:48:46 GMT 2024

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

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

Back to the top