Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Content Assist with INT
Content Assist with INT [message #1729784] Tue, 19 April 2016 01:45 Go to next message
Eclipse UserFriend
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 01:57 Go to previous messageGo to next message
Eclipse UserFriend
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,....)
Re: Content Assist with INT [message #1729809 is a reply to message #1729785] Tue, 19 April 2016 05:11 Go to previous message
Eclipse UserFriend
Thank you for the suggestion,Christian
Previous Topic:How to call AST contents
Next Topic:Content Assist for multi Word
Goto Forum:
  


Current Time: Wed Jul 23 14:41:06 EDT 2025

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

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

Back to the top