Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » adding listeners to xtext objects(I need to get notification that a particular object is changed in the editor)
adding listeners to xtext objects [message #1505017] Tue, 09 December 2014 19:29 Go to next message
manoj bvn is currently offline manoj bvnFriend
Messages: 1
Registered: December 2014
Junior Member
Hi guys,
I have a requirement that i need to convert the text in the Xtext editor to a model ,So i need to get the notification of which object has been changed in the text editor after saving so that i can change only that object in my model instead of replacing/creating entire model .So can you please help me in this regard .Thanks in advance

Re: adding listeners to xtext objects [message #1506163 is a reply to message #1505017] Wed, 10 December 2014 16:29 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi,

I'm afraid there is no fine grained notification mechanism in the
framework. The best you can get is the IResourceDescription.Change.Event.

You may want to register an EMF adapter on the editor resource (see
XtextDocumentProvider) and a listener on the editor (see
IXtextEditorCallback). Both together may allow to achieve what you want.
Usually it's done with other means like EMF compare, though.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:How to obtain a Resource inside the Eclipse runtime project
Next Topic:Xtype's ArrayBrackets
Goto Forum:
  


Current Time: Thu Apr 25 03:54:47 GMT 2024

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

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

Back to the top