Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext DSL plugin only provides keyword suggestions for the first line of the file(Xtext DSL plugin only provides keyword suggestions for the first line of the file)
Xtext DSL plugin only provides keyword suggestions for the first line of the file [message #1799607] Tue, 11 December 2018 00:49 Go to next message
Eclipse UserFriend
Hi,

I've been developing a language in Xtext, and so far I was able to reach up to the point where the runtime eclipse application provides a list of suggestions when pressed Ctrl+space. However, the suggestions are only displayed for the first line of the file. Afterwards, no matter how many times I pressed Ctrl+space, suggestions will not come. Below is my Xtext grammar. Could anyone please help me with this?

Domainmodel:
	(elements+=MainElement)
;

MainElement:
	ProjectionName | ProjectionComponent | LayerSpecification |
	Description | Capability | Category | ServiceGroup |
	IncludeFragment | {MainElement} Override | {MainElement} Overtake
;

ProjectionName:
	'projection' modelName=ID ';'
;

ProjectionComponent:
	'component' componentName=ID ';'
;

LayerSpecification:
	'layer' layerName=ID ';'
;

Description:
	'description' string=STRING ';'
;

Capability:
	'capability' type=('Online' | 'Offline') ';'
;

Category:
	'category' type=('Integration' | 'ExternalB2B' | 'Users') ';'
;

ServiceGroup:
	'servicegroup' type=('Mobility' | 'Reporting') ';'
;

IncludeFragment:
	('@Dynamic_Component_Dependency' componentName=ID) 'include' 'fragment' fragmentToIncludeName=ID ';'
;

Override:
	'@Override'
;

Overtake:
	'@Overtake'
;

[Updated on: Tue, 11 December 2018 01:20] by Moderator

Re: Xtext DSL plugin only provides keyword suggestions for the first line of the file [message #1799611 is a reply to message #1799607] Tue, 11 December 2018 01:32 Go to previous messageGo to next message
Eclipse UserFriend
I don't understand in can have only one element
There is no + or * after MainElement
Re: Xtext DSL plugin only provides keyword suggestions for the first line of the file [message #1799615 is a reply to message #1799611] Tue, 11 December 2018 03:17 Go to previous message
Eclipse UserFriend
Christian Dietrich wrote on Tue, 11 December 2018 06:32
I don't understand in can have only one element
There is no + or * after MainElement


Hi Christian,
Thank you for the reply. I have missed the * symbol.
Previous Topic:cross-reference with modified name
Next Topic:Setting a fixed keyword to start a DSL file
Goto Forum:
  


Current Time: Fri Jun 20 01:18:48 EDT 2025

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

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

Back to the top