[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] How to create an EString to set as EType for an EAttribute

Hello,

IÂve searched for a long time now and I didnÂt find a way to get an instance of EString to set it as the EType for a new created EAttribute.
Here is a snippet of my code:


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.