We have a plugin that defines a view and it depends on a GMF editor. The
view needs the name of the editor file, to pass it as a parameter in a
web service. We could deduce that from the URIEditorInput.
But now there is a feature request that requires access to the model.
I implemented it by opening the file (because I had the name) and
parsing the XML, but that was not my original idea. The whole model is
present as part of the editor. But how to get at it?
I have the IEditorPart and from that I want to access the model. I can
see in the Local variables that through the Edit(ing)Domain I can access
the viewers, and from there all the children on the diagram. But when I
try to code this, I am stuck at the URIEditorInput.
I hope I made myself clear. I have access to the code of the editor too.
So I can change it. But I would love to hear about a solution where
the editor code is not available.