| [news.eclipse.tools.emf] Re: EContentAdapter for all new Model instances |
Now I want to observe *any* new model instance of my metamodel. Is there a way to automatically add such adapter to the model at creation or loading? Where is the best point to hook that in?You can add an EContentAdapter to a ResourceSet and then it will be added to all objects contained by that resource set.
I'm tempted to ask what you're trying to accomplish though. For example, the XSD model is "self adapting" because it uses notifications internally to keep the DOM in sync with the model, but it doesn't do that by attaching adapters...
It sounds something like exactly that.
Cheers, Hauke