Community
Participate
Working Groups
Build Identifier: 20100610-0636 The following code: import ecore; EDataType getEcoreDataType(String name) : org::eclipse::emf::ecore::EcorePackage::eINSTANCE.getEClassifier(name) ; is erroneous according to Xtend editor because: Unknown variable, type or enumeration literal 'org::eclipse::emf::ecore::EcorePackage::eINSTANCE' even though the code appears to be valid (the transformation runs fine). Reproducible: Always Steps to Reproduce: 1. open the attachment in Eclipse 3.6 RC4
Created attachment 171898 [details] Simple test case
Which metamodel-constributors did you configure in your IDE? (Project properties -> Xpand)?
(In reply to comment #2) > Which metamodel-constributors did you configure in your IDE? (Project > properties -> Xpand)? None, I did not even know that this existed :-) By default only EMF Metamodels are activated, and the problem disappears if I also enable JavaBeans Metamodel. I did took the code from the Xtext FAQ though, so it might be worth mentioning this there.
Updated the FAQ.