accessing current model from other plugin [message #158530] |
Tue, 06 November 2007 10:17  |
Eclipse User |
|
|
|
Originally posted by: anchorman.gmx.net
Ho folks,
I have a generated GMF editor for a simple EMF model. The graphical
editor is just a small part of my app and I want to add more
functionality and logic for the model in other plugins. Now I'm a bit
confused how to access the current model that the user is editing in the
graphical editor. Most tutorials are on creating new elements with the
factories and so on or on using the generated Content/LabelProviders in
standard views. But how do I access the underlying model, i.e. the
instances of my generated model classes of the model that is being
modified in the editor from other plugins? A simple example: Say I want
to show the current number of nodes in the model in another view and
want it updated as soon as the user modifies the graphical model
representation?! Any hint or reference?
Thx,
Max
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04025 seconds