Community
Participate
Working Groups
If a DiagramEditor gets assigned a new EditorInput, it instantiates a new EditingDomain. However, the current implementation of ConcurrentModificationObserver does not react to these changes which means the old (and wrong) EditingDomain is continued to be observed. In my use case the DiagramEditor's Input is changed because if the user opens a the editor he/she first sees a Eclipse Forms based UI from which he can select the model element he/she wants to edit in GMF. This selection causes to re-set the EditorInput. I've fixed this issue by additionally listening to changes of the editor input and I'll attach the fix as a patch. Let's see if my use case is just to special or if this is useful for someone else.
Created attachment 179788 [details] xtext.gmf.glue: Support Changing Editor Inputs for DiagramEditors
Correct me if I am wrong, but I cannot find where you deregister/dispose the EditingDomainAdapter. As the editing domain's lifecycle could exceed the one of the editor, this is necessary.
see comment 2