[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] How to access the model from another plug-in
|
- From: "Jan H. van der Ven" <jhvdven@xxxxxxxxx>
- Date: Fri, 26 Jun 2009 17:32:12 +0200
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
Hi list,
Excuse me for my previous post. I forgot to change the subject.
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.
Kind regards,
Jan