i have a question about Xtext. I know that Xtext creates a Ecore Modell for the DSL that is programmed in the .xtext File. Am i getting it right that xtext only creates EClass, EAttribute, EEnum and ERefernce in the Ecore Model? There is no way to create an Attribute of an Rule to have an EOperaption?
1
votes
Well i wouldn't need it if i could get the referenced object with type and name .. of this object and the name of the reference. The latter i can get with ERerferenceObject.name... But the first is really a problem i can't collect the Object only the referenced EClass. This is example code from my dsl: setEntity=([Entity])... i can get the name of the ERerfence setEntity and i can get the EClass of the EReference and the EClass of the referenced EObject but nor the name or other information that is within the object.
- user1104033
2 Answers
2
votes