continue to the example of generating a field such as:
def handle (EClass c) {
val attr = EcoreFactory::eINSTANCE.createEAttribute
attr.name = "test"
attr.EType = EcorePackage::eINSTANCE.EString
c.EStructuralFeatures += attr
}
can I generate it as a static field? how to do so?
Am 04.11.12 10:54, schrieb Dana Klein:
> Hi,
>
> continue to the example of generating a field such as:
> def handle (EClass c) {
> val attr = EcoreFactory::eINSTANCE.createEAttribute
> attr.name = "test"
> attr.EType = EcorePackage::eINSTANCE.EString
> c.EStructuralFeatures += attr
> }
>
> can I generate it as a static field? how to do so?
>
> thanks in advance,
>