Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Own ScopeProvider as default delegate(How to configure my own ScopeProvider as default delegate)
Own ScopeProvider as default delegate [message #1836999] Wed, 20 January 2021 19:35 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I have implemented my own ScopeProvider for my grammar.
But somehow I am not able to integrate it streamlining with the stubs generated be Xtext

The stub is GeneratorModelScopeProvider(package omitted)
it is an AbstractGeneratorModelScopeProvider which in turn is an
DelegatingScopeProvider.

During debugging I recognized that the ScopeProvider is instantiated over and over again. Which surprise me. because I thought this instance could be reused for the whole runtime.

I suffered some NullPointerExeptions because one delegate in the generated stub does not get set as it should be.

I guess I only need to Guice annotate my ScopeProvider in the right way and the problem is solved.



Re: Own ScopeProvider as default delegate [message #1837015 is a reply to message #1836999] Thu, 21 January 2021 05:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is an Xtext question best asked on the TMF form:

https://www.eclipse.org/forums/index.php?t=thread&frm_id=27


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Can multiple CDO servers be clustered and replicate to each other for high availability?
Next Topic:EOperation body annotation in subclass
Goto Forum:
  


Current Time: Fri Mar 29 06:31:43 GMT 2024

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

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

Back to the top