| [news.eclipse.tools.emf] Re: How to create an EString to set as EType for an EAttribute |
Ok,
thanks a lot! I just didnÂt find it.
Stanley
Stanley,
EcorePackage.eINSTANCE.getEString() gives you the EString EDataType instance.
Hallvard
Stanley Hillner wrote:
EAttribute nameAttribute = fac.createEAttribute(); nameAttribute.setName("name"); nameAttribute.setLowerBound(1); nameAttribute.setUnique(false);
//here I want to set the EType of the nameAttribute (with method nameAttribute.setEType(.?.))
c.getEStructuralFeatures().add(nameAttribute);
//c is my EClass!
So, how can I get an instance of EString to set it there?
Thanks.