Versions Compared

Key

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

...

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

 by by adding an Is Initial ComboBox and an Is Final ComboBox. The user may select the option true or false.

Image Modified

Image Modified

Image Modified


After that, the State Properties View will look like this:

Image Modified



Modify the State EditPart in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/StateEditPart.java

 by adding the following code lines in the method handleNotificationEvent to update the border width or to add a double line border to the state, if the user changes the Is Initial or Is Final options.

...

Remove the Initial and Final State Icon from the palette palette

by removing them from the list of Elements situated in the file org.yakindu.sct.ui.editor/plugin.xml.

...

Modify the SGraphValidator in org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/util/SGraphValidator.java

 Modify the SGraphValidator.

 

Modify the creation wizard by modifying the method createStatechartModel in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/factories/FactoryUtils.java

...

Clean the code where the old Initial and Final States are implemented (FinalStateFigure, InitialStateFigure, ...)

Clean the code.