Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XbaseScopeProvider in Xtext 2.4
XbaseScopeProvider in Xtext 2.4 [message #1028430] Thu, 28 March 2013 04:43 Go to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1260
Registered: July 2009
Senior Member
Hi

looks like XbaseScopeProvider is now deprecated in Xtext 2.4 (and also
some methods have changed, thus my custom overridden versions do not
seem to work anymore); is a migration guide available already?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Re: XbaseScopeProvider in Xtext 2.4 [message #1028711 is a reply to message #1028430] Thu, 28 March 2013 12:39 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard Traetteberg
Messages: 582
Registered: July 2009
Location: Trondheim, Norway
Senior Member
I asked a similar question and was told they were working on the
migration guide, and that the target was the Kepler release. I hope it
comes a bit earlier than that.

They seem to have switched to XbaseBatchScopeProvider, try extending
that one instead.

Hallvard

On 28.03.13 01.43, Lorenzo Bettini wrote:
> Hi
>
> looks like XbaseScopeProvider is now deprecated in Xtext 2.4 (and also
> some methods have changed, thus my custom overridden versions do not
> seem to work anymore); is a migration guide available already?
>
> thanks in advance
> Lorenzo
>
Re: XbaseScopeProvider in Xtext 2.4 [message #1028715 is a reply to message #1028711] Thu, 28 March 2013 12:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5849
Registered: July 2009
Senior Member
Hi,

i think the guys a busy with eclipse con so it may take some time
Re: XbaseScopeProvider in Xtext 2.4 [message #1060732 is a reply to message #1028715] Tue, 28 May 2013 05:37 Go to previous messageGo to next message
Victor Noël is currently offline Victor Noël
Messages: 112
Registered: June 2010
Senior Member
Hi, any news about that?
Re: XbaseScopeProvider in Xtext 2.4 [message #1073705 is a reply to message #1060732] Thu, 25 July 2013 06:43 Go to previous messageGo to next message
Victor Noël is currently offline Victor Noël
Messages: 112
Registered: June 2010
Senior Member
Hi,

Just for the record, the solution is that content assist still uses XbaseScopeProvider while the rest of the system uses XbaseBatchScopeProvider.

A good way of pluging-in in (ouch, lot of in Wink the system is to specialises XImportSectionNamespaceScopeProvider (used by both) and, if desired, delegates to a homemade DeclarativeScopeProvider there.
Re: XbaseScopeProvider in Xtext 2.4 [message #1074016 is a reply to message #1073705] Thu, 25 July 2013 19:57 Go to previous message
Ian McDevitt is currently offline Ian McDevitt
Messages: 65
Registered: December 2012
Location: Belfast
Member
I had similar problems but a slightly different solution when moving to 2.4. I stopped using the XbaseScopeProvider because it was deprecated and just used the DeclarativeScopeProvider. But then my content assist broke and my ProposalProvider threw exceptions because its (generated) super class was still expecting my scope provider to be Xbase and was casting to it regardless.

After many dead ends of recoding I have it working again by moving ALL my scope calculations to my delegate ImportedNamespaceAwareLocalScopeProvider AND not overriding the main ScopeProvider at all (removed from Runtime module).

This feels better than having some of the scope work split but it was a lengthy path to refactor at the time.
Previous Topic:quick fix in xtext
Next Topic:ClassNotFoundException: org.eclipse.xtext.ecore.ecoresupportstandalonesetup
Goto Forum:
  


Current Time: Sun Apr 20 02:52:38 EDT 2014

Powered by FUDForum. Page generated in 0.03370 seconds