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: 6483
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)
	}
}
Previous Topic:XtextRunner cannot be resolved to a variable
Next Topic:Scoping
Goto Forum:
  


Current Time: Sat Nov 22 16:46:08 GMT 2014

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

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