Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Why ScopeProvider is missing when Xbase is used?
Why ScopeProvider is missing when Xbase is used? [message #1044088] Thu, 18 April 2013 09:27 Go to next message
Eclipse UserFriend
Hi,

I'm using Xtext 2.3.1 with Eclipse 4.2.2. I have noticed that if my grammar uses Xbase (grammar xtext.MyDsl with org.eclipse.xtext.xbase.Xbase), then the packages xtext.mydsl.generator and xtext.mydsl.scoping are not generated. I understand that the generator package is not generated to encourage using the model inferrer instead, but do I suppose to resolve all scoping issues using the inferrer?

For example, I have this piece of grammar:

MethodContract:
   'method' methodName=[types::JvmOperation]
   ...
;


Before I migrated to Eclipse 4.2.2 (from 3.6) I customized MyDslScopeProvider so methodName can accept the methods of a particular class (http://www.eclipse.org/forums/index.php/m/1018110/#msg_1018110). Can the model inferrer handle such a case?

Thanks!
Oren
Re: Why ScopeProvider is missing when Xbase is used? [message #1044333 is a reply to message #1044088] Thu, 18 April 2013 15:37 Go to previous message
Eclipse UserFriend
Hi,

afaik xbase currently uses XbaseScopeProvider and XbaseBatchScopeProvider
nothing prevents you from creating and binding subclasses yourself.
there is no stub generated since the ususal xbase used may not need to subclass.
Previous Topic:Runtime exceptions thrown from the model inferrer
Next Topic:M2M Transformation
Goto Forum:
  


Current Time: Wed Jul 23 10:56:36 EDT 2025

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

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

Back to the top