eclipsesource / papyrus-umllight

Eclipse Public License 2.0
4 stars 2 forks source link

Fix #6 Remove region tool #48

Closed cdamus closed 5 years ago

cdamus commented 5 years ago

Remove the Region tool from the palette as multiple regions and composite states are not supported.

cdamus commented 5 years ago

Yes, indeed. There is no pop-up bar on the state machine but on a state it offers region and state, both of which need to go. The state tool implicitly creates a region for the composite state.

cdamus commented 5 years ago

Blocking the pop-up tool for nested state turned out tricky because the edit-policy in the state edit-part doesn't consult the Element Types for creation of the region. So, I had to override that edit-policy. This has the happy side-effect of also preventing creation via the palette of a state within a state.

tortmayr commented 5 years ago

Very nice, thanks!