How do I create an EAttribute whose data type is not an EMF class?

后端 未结 3 2095
名媛妹妹
名媛妹妹 2021-02-09 02:38

Using EMF, I\'d like to define an attribute whose data type (EType) is external to my EMF model. That is, the type I want is a normal hand-coded Java class that is not part of m

3条回答
  •  眼角桃花
    2021-02-09 03:11

    I am using Eclipse Kepler with EMF 2.9.1.

    Adding to Michael's answer, in the Ecore Model Editor you can just right click and choose

    New Child -> EData Type

    and then fill in your values in the Properties view (Name, Instance Type Name). So you don't have to do add it manually anymore.

提交回复
热议问题