|Altering/Restricting Xtext DSL Entry and Exit Rule [message #1729733]
||Mon, 18 April 2016 15:10
| Parsa Pourali
Registered: February 2014
I was wondering if you can guide me to an "easy way" to alter an xtext entry/exit rule at runtime.
Imagine we have:
RuleA: RuleB '+' RuleC
Now, when we have embedded editor in the diagram, we would like to edit only a part of the text. It is now possible with using styled text visible regions or xtextpartialeditor ! However, if I pass RuleB to the embedded editor, the user can start with changing the RuleB object and also go further and continue to set object of RuleC ! In the example above, if we pass RuleB object to embedded editor, if the user hits ctrl+space, he can see '+' in the content assistant and can then set the RuleC.
Now, my question is how to restrict the user to prevent going further than the passed rule. An example of this can be only editing an Event of a transition and don't let the user to go further and also set the transition Guard and Actions.
[Updated on: Mon, 18 April 2016 15:12]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01971 seconds