| [news.eclipse.tools.emf] Re: Is there a way to extend EFactories? |
Ed,
It's nice that the schema has a version attribute, but that doesn't help you distinguish which version any particular instance will be using.
It still begs the question how you'd know which to use?
(See above)
Is such a thing possible?No.Or is something similar possible?No.
Hmm. Unfortunate.
The encapsulation of object creation is the key here for me.Certainly object creation is centralized in XMLHelperImpl's public EObject createObject(EFactory eFactory, EClassifier type) but without information in the document, it's not clear how that would help.
I'll take a look into this. Thanks.
Typically "binary" incompatible schema changes should be associated with a change to the namespace and that of course makes the problem very easy to solve because you'd have a different package and different factory for that.
Thanks, Paul