سؤال

EMF generates classes for models with protected no-argument constructor, is there a way to instruct genmodel to generate constructor as public? The only discussion I saw about this was this one, but not sure if it was addressed.

هل كانت مفيدة؟

المحلول

Open your .genmodel in a properties editor. Find "Model Class Defaults" group. Change "Public Constructors" to "true".

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top