Hi,
question: this solution would make the xcore file depend on the eiq file, and the eiq file depend on the xcore file (since it uses the metamodel extracted from xcore). Will this pose any problems e.g. in the builder phase?
Now, regarding the syntax. Instead of
incquery-based-derived Book[] favoriteBooks spec library.favBooksOfWriter;
how about:
derived Book[] favoriteBooks incquery-spec library.favBooksOfWriter;
I think this would look more consistent with fewer dashes. I hope the generator could handle this equally well (i.e. it is enough to notice that there is an incquery-spec element instead of the getter).
Also, if the pattern has @QueryBasedFeature, then the eiq generator can inject the derived feature into the generated EMF code, so there is no need to specify the name of the pattern again in xcore. The real added value would be the omission of the @QBF annotation, is that right? Or, eventually, if the derived feature pattern could be defined in-line in the xcore file... that would be awesome.