Community
Participate
Working Groups
It happend to me already a couple of times, that I needed to add my own extensions to the EMF code generator. As my intension is to generate Java files, I'd like to reuse the ImportManager implemented in GenBaseImpl. However, two very much decisive methods for that case, namely getImportManager() and setImportManager() are protected. So, the only option to reuse them, is to subclass the GenModel. But this has plenty of side effects and is somewhat complicated. It would be much more convenient if I could just aggregate the GenModel into my own generator extension and call the above named methods from outside. In a word, I'm wondering if these two methods could be made public.
Created attachment 35261 [details] Enhancement suggestion
This sounds very reasonable. We should probably provide public API methods on the GenModel interface for this, right?
(In reply to comment #2) That would be just perfect!
This enhancement was implemented as part of bug 75925 and has now been committed to CVS.
Fixed in 2.2.0RC2 (S200605020900)
Move to verified as per bug 206558.