Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Two options in Editor but one in the model
Two options in Editor but one in the model [message #1080626] Tue, 06 August 2013 03:25 Go to next message
Eclipse UserFriend
Hello

I have a requirement to use one variable to store a value say bitLength. However at the editor side, there should be options bitLength or byteLength for the user.

If the user selects byteLength, the value has to be converted and stored into bitLength. ie. XCore defines only bitLength

How can this be acheieved?

Thanks.

Regards,
Dhanya
Re: Two options in Editor but one in the model [message #1080724 is a reply to message #1080626] Tue, 06 August 2013 06:09 Go to previous message
Eclipse UserFriend
Hi,

depends if there is a syntax difference. then you could try to
change this with a valueconverter.

or you store both values and add a derived getter for the calculated value.
Previous Topic:Xtext 2.4.2 ScopeProvider
Next Topic:Custom generator in MWE2 workflow with GrammarAccess
Goto Forum:
  


Current Time: Mon Jul 07 01:14:24 EDT 2025

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

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

Back to the top