Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content Assist with INT
Content Assist with INT [message #1729784] Tue, 19 April 2016 05:45 Go to next message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
I am trying to match the following .

last 2 weeks
last month

This is my grammar.

LastTimeGroup:
	lastTimeGroup= 'last'('year'|'quarter'|'month'|'week')
;

LastNTimeGroup:
	lastTimeGroup= 'last'INT('days'|'weeks'|'months')
;



I have observed that , when I type

last 2 . I do not get the content assist as days,weeks, months.
when I type last ,I get year,quarter ,month ,week as the content assist. Since I have INT (2)

I am wondering if I have missed anything in the grammar .
Re: Content Assist with INT [message #1729785 is a reply to message #1729784] Tue, 19 April 2016 05:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13193
Registered: July 2009
Senior Member
please set more context: is this about content assist in eclipse, in idea, in web ?????
did you debug the proposalprovider ?!?
do you have any customizations there?

asuming you have web and no customizations.

ide proposal provider has obviously no case that handles INT.

please file a ticket for that.

another point is that your INT goes to dev/null which is (kind of) bad from a modeling point of view

thus a grammar like

LastNTimeGroup:
lastTimeGroup= 'last' count=INT ('days'|'weeks'|'months')
;

would be better and solves your problem (at least partially)

so please customize the proposal provider and file a bug.

see _createProposals(Assignment, ...) and _createProposals(RuleCall,....)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Content Assist with INT [message #1729809 is a reply to message #1729785] Tue, 19 April 2016 09:11 Go to previous message
pranay roy is currently offline pranay royFriend
Messages: 196
Registered: January 2016
Senior Member
Thank you for the suggestion,Christian
Previous Topic:How to call AST contents
Next Topic:Content Assist for multi Word
Goto Forum:
  


Current Time: Fri Nov 15 23:44:21 GMT 2019

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

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

Back to the top