Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactorings #35

Open
mogsie opened this issue Oct 6, 2018 · 1 comment
Open

Refactorings #35

mogsie opened this issue Oct 6, 2018 · 1 comment

Comments

@mogsie
Copy link

mogsie commented Oct 6, 2018

I'd love a tool like this to support various types of refactorings. An obvious one is "specialize" to introduce a substate; you might not even consider that a refactoring. But there are other types of refactorings that you could have like:

  • Move transition to parent state — On a transition source, "move to parent state": The transition is moved to the parent state
  • Move transition to substates — On a transition source, "move to substates": The transition is moved to all substates
  • Introduce superstate: Select one or more states, and "Introduce superstate" — common transitions to and from the selected states are automatically placed on the new superstate
  • Wrap in parallel state: Select one or more states, "Wrap in parallel state" — The states are wrapped in a region in a new parallel state, with another empty region alongside it.
  • Introduce region: Select a state (with or without substates) — The state is converted to a parallel state with two regions, all existing substates are placed in one of the regions.

Opening this issue mainly to spark the discussion and get the ideas out there.

@ShMcK
Copy link
Owner

ShMcK commented Oct 8, 2018

Thanks @mogsie. This is a great roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants