|how to deal with EDataType [message #909662]
||Fri, 07 September 2012 14:22
| Junior Lekane Nimpa
Registered: September 2012
i am new to graphiti and actually i try to implement my first editor for the ecore meta model.I want to implement direct editing feature for EAttribute but i am facing some problems.I hope that someone could help me.
I use shape with text to represent EAttributes. You can see here the format that i use to store the informations as text :
attributeName : attributeType [= initialValue]
My questions are the following.
1 -how can i check if attributeType is a well EDataType?
(as represented above attributeType is a String)
2- Assuming that attributeType is an EDataType (e.g EString)
how can create the corresponding dataType from this string?
3- How can i check that initialValue is a value from the data type represented by
Powered by FUDForum
. Page generated in 0.01931 seconds