statecharts icon indicating copy to clipboard operation
statecharts copied to clipboard

Quickfix for adding "oncycle" or "always" to a transition

Open SanniSch opened this issue 9 years ago • 3 comments

If a transition has no name (no event) offer a quick fix to the user to add "oncycle" or "always".

SanniSch avatar Feb 01 '16 13:02 SanniSch

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"

SimonEit avatar Aug 22 '17 14:08 SimonEit

Now we have templates for this case. The user can add triggers by pressing ctrl+space.

Nevertheless quickfixes shall be added:

  1. I add text to a transition -> quickfix: create an event for this text (questions: in which scope? in or out event?)

svenjawendler avatar Feb 15 '18 10:02 svenjawendler

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.

svenjawendler avatar Feb 26 '18 09:02 svenjawendler