Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » how to coherently update parts of my script in the editor
how to coherently update parts of my script in the editor [message #1053353] Sat, 04 May 2013 06:57
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

I'd like a DSL to have some parts which relate each other for instance

  startInt : 3
  endInt  : 10
  deltaInt: 7


where deltaInt shall always be endInt - startInt

How do you suggest me to modify the editor (i.e. SelectionChangedListener? react on saving, etc) to automatically update the deltaInt if the startInt or endInt is changed or to update the endInt in case the deltaInt is changed?


Follow me on Twitter @andreasindico

[Updated on: Sat, 04 May 2013 13:01]

Report message to a moderator

Previous Topic:Programming Language DSL (SAG Natural)
Next Topic:Inferring multiple classes for one model element with type parameters
Goto Forum:
  


Current Time: Tue Sep 02 00:36:50 EDT 2014

Powered by FUDForum. Page generated in 0.01593 seconds