Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[incquery-dev] GenModel usage in EMF-IncQuery

Hi,

I did some research about the instanceClass attributes of EMF, and found out I was partially wrong yesterday when I claimed that the generator does not use the generator model.

In case of generated code loaded from the EPackage registry, the instanceClass is set by the Package initializer, see e.g. the following code from the PatternLanguagePackageImpl (the second parameter is relevant):
> initEClass(pathExpressionHeadEClass, PathExpressionHead.class, "PathExpressionHead", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

However, in case of packages loaded from the current workspace (either via the target platform based resolution or the eiqgen file), these attributes are not set, and the genmodel is used instead to find out the correct classes.

This means, the genmodel-based resolution is needed for https://bugs.eclipse.org/bugs/show_bug.cgi?id=431454; but some alternative loading mechanism needs to be provided for the Maven builder. I am still working on the details, but at least now I understand how the stuff works. :)

Cheers,
Zoli
-- Zoltán Ujhelyi
https://www.inf.mit.bme.hu/en/members/ujhelyiz

Fault Tolerant Systems Research Group
Budapest University of Technology and Economics



Back to the top