Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Text editor get/set text(it shouldn't be this hard to figure out!)
Text editor get/set text [message #526721] Mon, 12 April 2010 13:49
Devon Lehman is currently offline Devon Lehman
Messages: 3
Registered: April 2010
Junior Member
I'm trying to create an editor function that will listen for changes in the document and then perform an action when something is typed. The other features I need are to be able to get this text (as a string) from the source file, and change it as well.

However, I'm having a lot of trouble finding out where to get this from. Can someone give me a line of code to run from the editor object that will get me the text contained in the file, and a line to change the text in the editor?

If you know of a way to create an method to listen for changes on the document, that'd be a great help, too.

Thanks a lot!

[Updated on: Mon, 12 April 2010 13:49]

Report message to a moderator

Previous Topic:What is the best way to override resources in a plug-in?
Next Topic:How to know if a perspective is custom or predefined?
Goto Forum:
  


Current Time: Fri Aug 22 07:48:31 EDT 2014

Powered by FUDForum. Page generated in 0.01976 seconds