Hello,
I have something like this in my grammar:
ObjectReference:
type=[VariableType]
;
VariableType:
Attribute | Domain | ExtendedDataType
;
The problem is that the objects Attribute and Domain are explicitly written by the user, while the object ExtendedDataType is an implicit object of my DSL.
My first thought was to simply write a scoping method like this:
public IScope scope_VariableType(EObject context, EReference reference) {
//get the list of my implicit objects
Interface i = ElementFactory.getFactory().getInterfaceByName("ExtendedDataTypes");
return Scopes.scopeFor(i.getExtendedDataTypes());
}
, but it will only show the ExtendedDataType objects and not the Attribute and Domain objects written by the user.
What approach I can use here to show all the objects I need?
Thanks!