Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Fillter predicate
Fillter predicate [message #1062847] Tue, 11 June 2013 01:51 Go to next message
Eclipse UserFriend
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 09:10 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 19:41:34 EDT 2025

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

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

Back to the top