statecharts
statecharts copied to clipboard
Quickfix for adding "oncycle" or "always" to a transition
If a transition has no name (no event) offer a quick fix to the user to add "oncycle" or "always".
Suggestion: If a new transition between states is created by a user, do not create it with an empty transition label but pre-fill it with always
By doing this, new transitions don't create an immediate warning and just "work"
Now we have templates for this case. The user can add triggers by pressing ctrl+space.
Nevertheless quickfixes shall be added:
- I add text to a transition -> quickfix: create an event for this text (questions: in which scope? in or out event?)
To solve this the sct infrastructure needs to be adapted to support quickfixes on stext models. The standard xtext solution https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#quick-fixes works on resources. This is not applicable for the statecharts.
Though the quickfix solution for resources does not work with sct. Because SCTXtextIntegrationModule only implements Module and does not extend STextUiModule => it misses bindings.