Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Customizing ScopeProvider for cross references using JvmReferenceType (XBase)
Customizing ScopeProvider for cross references using JvmReferenceType (XBase) [message #1276569] Mon, 24 March 2014 18:49 Go to next message
George Best is currently offline George BestFriend
Messages: 4
Registered: March 2014
Junior Member
In the following post I describe a cross reference resolution problem when using Xbase and JvmReferenceType.

The following error message appears:
"Couldn't resolve reference to ViewState '...' "

Please find the following snippet of my grammar file:

********************************************************

StartState:
'start' state=[ViewState]
;

ViewState:
'state' type=JvmTypeReference '{'
(triggers+=Trigger)+
'}'
;

Trigger:
'on' name=ID '{'
(transitions+=Transition)
'}'
;

Transition:
'transition to' targetstate=[ViewState]
;

********************************************************

When a concrete 'state' (rule ViewState) has been defined, the cross-reference [ViewState] is not visible for the key-words 'start' and 'transition to' (the imports for the JvmTypeReference =Java-Classes are already been automtically inserted via the launched eclipse editor).

Can someone direct me to the right way, how a customized scope provider needs to be prepared for this issue.

I already found out, that in case of Xbase-Grammar, the AbstractDeclarativeScopeProvider cannot be used and the XBaseScopeProvider is deprecated within Xtext SDK 2.4.3.

So how is it possible to introduce a special scope provider which works together with Xbase and the mentioned problem?


Thank you for your help in advance.

[Updated on: Tue, 25 March 2014 10:38]

Report message to a moderator

Re: Customizing ScopeProvider for cross references using JvmReferenceType (XBase) [message #1277003 is a reply to message #1276569] Tue, 25 March 2014 10:36 Go to previous messageGo to next message
George Best is currently offline George BestFriend
Messages: 4
Registered: March 2014
Junior Member
Can someone help me on this issue please?
Re: Customizing ScopeProvider for cross references using JvmReferenceType (XBase) [message #1277092 is a reply to message #1277003] Tue, 25 March 2014 13:42 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13318
Registered: July 2009
Senior Member
Hi,

i have no idea on the xbase part, but ViewState has no attribut name, so it wont work in normal cases anyway.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Changing output directory for code generated files with Xtext
Next Topic:[SOLVED] xText Version running on Eclipse 3.6?
Goto Forum:
  


Current Time: Mon Jan 27 14:45:03 GMT 2020

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

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

Back to the top