Skip to main content


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 08:43 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
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 16:39 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
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 16:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

i think the guys a busy with eclipse con so it may take some time


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: XbaseScopeProvider in Xtext 2.4 [message #1060732 is a reply to message #1028715] Tue, 28 May 2013 09:37 Go to previous messageGo to next message
Victor Noël is currently offline Victor NoëlFriend
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 10:43 Go to previous messageGo to next message
Victor Noël is currently offline Victor NoëlFriend
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 23:57 Go to previous message
Ian McDevitt is currently offline Ian McDevittFriend
Messages: 70
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: Tue Apr 16 14:21:16 GMT 2024

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

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

Back to the top