I have implemented an Eclipse editor to view text for a model. I have a model to store the information where which model element is represented in the text. Now I want to create annotations for the markers created through EVL. I could find no tutorial on how to do this.

I am looking for a way to get notifyed of marker changes and create the annotations by hand then. Is a resource listener the right thing for this job?

I do have a GMF model which is validated by an EVL skript. The markers etc. are attached to the resource which the GMF model editor displays. So in this editor everything is fine. Additionally to this graphical editing option I offer textual editing of certain parts of the model to the user. For this purpose a custom syntax can be defined on the model at runtime. A user can then click a button to see the same model in textual and graphical views side by side at the same time. Both the textual and model editor update each other while editing one of them. At the moment the validation results are only shown in the graphical editor as this editor has the model as resource. The textual editor is not connected to any resource etc. It is having a custom editor input that is generated out of the graphical model. All changes that are done are directly written to the model on save of the text editor. Now I want to show the results of the EVL evaluation in the textual model editor too. Hence, I assume that I need to somehow listen to the model resource for changes of markers and put annotations for these markers to my textual editor by hand. Is this right? Is putting a resource listener on the workspace the best way to do it?