Community
Participate
Working Groups
Build Identifier: 20100617-1415 Enum and data type rules can be used in cross references. This shouldn't be allowed in the Xtext editor. A validation rule for this scenario is needed. Reproducible: Always
What's wrong about data type rules in cross references? FQN: ID ('.' ID)*? Class: 'class' name=ID ('extends' extends=[Class|FQN])? I agree that enum rules don't make sense since scoping in general is based on string.
The problem is the type, not the lexical representation of the crosslink Foo: bar=[Bar]; Bar (returns ecore::EString): ID ('.' ID);
We should validate that cross references point to EClasses. ContentAssist should filter other EClassifiers as well. Mybe it's sufficient to reduce the scope for type refs in cross references but this will provide no meaningful error message.
Fixed in HEAD.
Closing bug which were set to RESOLVED before Eclipse Neon.0.