Page History
...
Table of Contents
Modify the Metamodel in in org.yakindu.sct.model.sgraph/model/emf/sgraph.genmodel
...
by adding two attributes (isInitial, isFinal) to the State Class.
...
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/StateFigure.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 in org.yakindu.sct.ui.editor/plugin.xml
by removing them from the list of Elements situated in the file org.yakindu.sct.ui.editor/plugin.xml.
...
Modify the SGraphValidator.
Modify the creation wizard
...
in org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/factories/FactoryUtils.java
The creation wizard creates a new diagram which includes an Initial State and a Normal State. We should modify the creation wizard by modifying the method createStatechartModel (org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/factories/FactoryUtils.java)
Clean the code
Clean the
...
code where the old Initial and Final States are implemented (FinalStateFigure, InitialStateFigure, ...)
...
Clean the code.