Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Explanation of Binding in layman terms?
Explanation of Binding in layman terms? [message #1766835] Tue, 27 June 2017 19:39 Go to next message
Eclipse UserFriend
Hi XText community. I just started using XText, and I tried understanding binding and writing scoping methods using the documentation but couldn't get it. If someone can explain where to write scoping methods and how in a DSL and what binding is would be extremely helpful.

[Updated on: Sun, 02 July 2017 20:03] by Moderator

Re: Explanation of Binding in layman terms? [message #1766901 is a reply to message #1766835] Wed, 28 June 2017 12:06 Go to previous message
Eclipse UserFriend
if you create a dsl with the wizard you get

<MyDsl>ScopeProvider.xtend pregenerated.
simply open it and override getScope

class MyDslScopeProvider extends AbstractMyDslScopeProvider {
	
	override getScope(EObject context, EReference reference) {
		// TODO implement
		super.getScope(context, reference)
	}

}


- use parameter reference to find out which reference you scope.
- use parameter context to find out where you are and to navigate through the model

https://de.slideshare.net/holgerschill/deep-dive-into-xtext-scoping-local-and-global-scopes-explained
Previous Topic:How to exclude resources from build
Next Topic:Problem with external ecore model
Goto Forum:
  


Current Time: Tue Jul 15 09:07:09 EDT 2025

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

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

Back to the top