|
|
|
|
|
|
Re: [xbase] narrow cross references for java based JvmTypes [message #946808 is a reply to message #946389] |
Tue, 16 October 2012 14:24 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Hi,
the scoping methods to put into <Mydsl>ScopeProvider look something like this.
IScope scope_Block_e(Block b, EReference ref){
Company linkedCompanyInBlock=b.getG();
List<Employee> listOfCompanyEmployees = linkedCompanyInBlock.getEs();
return Scopes.scopeFor(listOfCompanyEmployees);
}
IScope scope_Block_f(Block b, EReference ref){
Employee linkedEmployeeInBlock=b.getE();
List<employeeId> listOfEmployeeIds = linkedEmployeeInBlock.getFs();
return Scopes.scopeFor(listOfEmployeeIds);
}
Alex
P.S.: Note that your question had nothing to do with xbase or hava based JvmTypes. You should have opened a new thread.
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
Powered by
FUDForum. Page generated in 0.03080 seconds