Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And then generate the EMF Model Code.

 

Modify the State Figure in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editor/figures/TransitionFigure.java

Modify the constructor

Image Added

Add the methods createNormalTerminationDecoration() and createStrongAbortDecoration() to draw the different source decorators.

Image Added

Image Added

And then create a method refreshSourceDecoration() to refresh the source decorator, if the transition type is changed.

Image Added

Modify the Transition Propertysheets in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/propertysheets/TransitionPropertySection.java

Add a transitionType ComboBox. The user can select between the different options: Weak Abort, Strong Abort, and Normal Termination.

Image Added

Image Added

Image Added

Modify the Transition EditPart in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/TransitionEditPart.java

Add the following code lines in the method handleNotificationEvent() to update the source decorator when the user changes the Transition Type.

Image Added