Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Value Converter is not getting called
Value Converter is not getting called [message #1109288] Sun, 15 September 2013 06:25
Ashwini Nayak is currently offline Ashwini NayakFriend
Messages: 19
Registered: July 2013
Junior Member
Hi,

I have a rule in my xtext as below for which I have written a ValueConverter class:

Index returns NumberLiteral:
{NumberLiteral} (INT | Double | IntRange | DoubleRange)
;

NumberLiteral returns Expression:
{NumberLiteral} value=Number
;

Number hidden():
HEX | ('-')? (INT | DECIMAL) ('.' (INT | DECIMAL))?;


sample.xcore
class NumberLiteral extends Expression
{
String value
}




My ValueConverter class
@ValueConverter(rule = "Index")
public class EmsValueConvertor extends AbstractDeclarativeValueConverterService {
......
}

I have binded the ValueConverter calss in my RuntimeModule class. But, still the ValueConverter doesnot get called during runtime.
Can anybody tell me if I have gone wrong somewhere?

Thanks in advance

[Updated on: Sun, 15 September 2013 06:27]

Report message to a moderator

Previous Topic: update Instance in the same resource automatically
Next Topic:Generating Graphical AST
Goto Forum:
  


Current Time: Wed Jul 08 14:49:26 GMT 2020

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

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

Back to the top