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

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: 32661
Registered: July 2009
Senior Member
This is an Xtext question best asked on the TMF form:

Ed Merks
Professional Support:
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: Wed Feb 01 23:30:34 GMT 2023

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

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

Back to the top