Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Fillter predicate
Fillter predicate [message #1062847] Tue, 11 June 2013 05:51 Go to next message
junior developer is currently offline junior developerFriend
Messages: 335
Registered: January 2013
Senior Member
Hi all ,

I load my little project and screenshot.My aim is :Lookup field's type and showfield.

screenshot:if the user select T,gets onlly A
if the user select T1 in the type,gets onlly B.

best regrads
Re: Fillter predicate [message #1063144 is a reply to message #1062847] Wed, 12 June 2013 13:10 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11970
Registered: July 2009
Senior Member
class MyDsl6ScopeProvider extends org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider {

	def IScope scope_LookUp_showField(LookUp ctx, EReference ref) {
		Scopes::scopeFor(ctx.type.ownedField)
	}
}


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:XtextRunner cannot be resolved to a variable
Next Topic:Scoping
Goto Forum:
  


Current Time: Fri May 25 11:01:53 GMT 2018

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top