[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: modification of ElementInitializers generation

Hello Patrick,

Do you have an exact copy of the template, or did you copy only this very definition (ÂDEFINE performInit(GenCommonBase diagramElement, String instanceVar, GenClass instanceClass, List[int] counters) FOR GenFeatureValueSpec-Â)? This error says: due to some reasons corresponding enumeration (or itâs literal) was not found.

So, if you have whole GMF in a target platform (gmfgen model available in default Ecore package registry) + import ÂIMPORT "http://www.eclipse.org/gmf/2008/GenModel"Â; specified in corresponding custom template this error can be produces only if you are using old gmfgen model (AFAIKSee from the CVS history âliteralâ was added to the GenLanguage enumeration after GMF 2.1 release)â

I suggest you to better use xpt/providers/ElementInitilizers.xpt from org.eclipse.gmf.codegen plugin of your current target platform â CVS version sometimes is âtoo freshâ. :-)

-----------------
Alex Shatalin

P.S. Recently we modified xpand templates engine in GMF (using ImperativeOCL as a query language instead of xtend one) so I suggest you to base your development on latest GMF integration/stable builds to avoid custom templates migration in future.