[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: How is EDataType modeled to relate to its instances EString, EInt and so on

As for how it knows that an EInt is a primitive java int, that is done in the initialization of the ECorePackageImpl. It uses the line:

initEDataType(eIntEDataType, int.class, "EInt", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);

where int.class is the java class of the datatype.

--
Thanks,
Rich Kulp