Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to tie a model to a TextEditor
How to tie a model to a TextEditor [message #147375] Tue, 21 October 2003 13:21 Go to next message
Eclipse UserFriend
Originally posted by: Eric.Jain.isb-sib.ch

I'm looking for examples or hints how to tie an object model to a text
editor.

I can easily convert the objects to their text representation and back, but
for editing I assume some kind of incremental approach is required.

Also, in order to be able to determine proposals for the content assist
function, I need access to the objects underlying the text at any given
position. This seems rather difficult, but I assume there are solutions to
this problem...

I guess I could have a look at the Java editor provided by Eclipse, but
would be glad if there was anything simpler to start with!

--
Eric Jain
Re: How to tie a model to a TextEditor [message #147547 is a reply to message #147375] Tue, 21 October 2003 20:51 Go to previous messageGo to next message
Eclipse UserFriend
Eric,
Take a look of the "Documents and partitions" in the Eclipse online help.
Xmen is one example that tie XML data with the editor document.
http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id= 121

Elwin

Eric Jain wrote:

> I'm looking for examples or hints how to tie an object model to a text
> editor.

> I can easily convert the objects to their text representation and back, but
> for editing I assume some kind of incremental approach is required.

> Also, in order to be able to determine proposals for the content assist
> function, I need access to the objects underlying the text at any given
> position. This seems rather difficult, but I assume there are solutions to
> this problem...

> I guess I could have a look at the Java editor provided by Eclipse, but
> would be glad if there was anything simpler to start with!

> --
> Eric Jain
Re: How to tie a model to a TextEditor [message #147779 is a reply to message #147547] Wed, 22 October 2003 11:53 Go to previous message
Eclipse UserFriend
Originally posted by: Eric.Jain.isb-sib.ch

> Take a look of the "Documents and partitions" in the Eclipse online
> help. Xmen is one example that tie XML data with the editor document.
> http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id= 121

Thanks, this plug-in looks like an excellent example. It goes beyond the
example provided in the documentation, without being to complex.

--
Eric Jain
Previous Topic:Opening a new window - don't want frameset
Next Topic:CVS Repository persepctive, delete folder?
Goto Forum:
  


Current Time: Sun May 11 04:21:26 EDT 2025

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

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

Back to the top