Creating and deleting statecharts

Statecharts are comprised in statechart model files. The filename extension of these files is .sct. Their internal format is XML Metadata Interchange or XMI, which is an XML language.

Creating a statechart

In order to create a new statechart, use the project explorer view:

  1. Right-click on a project or on a folder you want to create the new statechart in. The context menu appears.
  2. In the context menu, select New → Other…. The New dialog appears.
  3. In the New dialog, select YAKINDU SCT → Statechart Model and click Next >. The New YAKINDU Statechart wizard appears.
  4. In the File Name field, enter a filename for the statechart file to be created. The filename extension must be .sct.
  5. Click Next >.
  6. In the wizard, select a statechart domain. Which domains are available depend on your YAKINDU Statechart Tools license. The Default domain for „normal” statecharts without any language integration is always available.
  7. Click Finish.
  8. If the Confirm Perspective Switch dialog appears, answer its question as you see fit.
  9. The new statechart file is created in the location you specified and opened in the statechart editor.

Copying an existing statechart

In order to copy an existing statechart file, proceed as follows:

  1. In the project explorer view, right-click on the statechart’s filename. The context menu appears.
  2. In the context menu, select Copy.
  3. Right-click on the project or folder you want to insert the copied file in. The context menu appears.
  4. In the context menu, select Paste.
  5. If there is already a file with the same name as the file to be copied in the target project or folder – which is always the case if you are copying a file within the same project or directory –, the Name conflict dialog appears.
    1. Specify a name for the new file. The Name conflict dialog and makes a suggestion, which you can modify.
    2. Click OK to paste the new file to the target project or folder.
  6. If the target project or folder does not contain a file with the same name as the source file, the copied file will have the same name as the original.

Deleting a statechart

In order to delete a statechart file, proceed as follows:

  1. Right-click on the statechart file in the Project Explorer view. The context menu appears.
  2. In the context menu, select Delete.
  3. The Delete Resources confirmation dialog appears. You have three choices:
    1. Click Preview > to inspect what the delete operation is going to do, if confirmed.
    2. Click Cancel to cancel the delete operation. Your statechart file will persist.
    3. Click OK to actually delete the statechart file.