Customizing ScopeProvider for cross references using JvmReferenceType (XBase) [message #1276569] |
Mon, 24 March 2014 18:49 |
George Best 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04157 seconds