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.
In order to create a new statechart, use the
project explorer view:
- Right-click on a project or on a folder you want to create the new statechart in. The context menu appears.
- In the context menu, select
New → Other…. The
New dialog appears.
- In the
New dialog, select
itemis CREATE → Statechart Model and click
Next >. The
New itemis CREATE wizard appears.
- In the
File Name field, enter a filename for the statechart file to be created. The filename extension must be
.sct.
- Click
Next >.
- In the wizard, select a statechart domain. Which domains are available depend on your itemis CREATE license. The
Default domain for “normal” statecharts without any language integration is always available.
- Click
Finish.
- If the
Confirm Perspective Switch dialog appears, answer its question as you see fit.
- The new statechart file is created in the location you specified and opened in the
statechart editor.
In order to copy an existing statechart file, proceed as follows:
- In the
project explorer view, right-click on the statechart’s filename. The context menu appears.
- In the context menu, select
Copy.
- Right-click on the project or folder you want to insert the copied file in. The context menu appears.
- In the context menu, select
Paste.
- 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.
- Specify a name for the new file. The
Name conflict dialog and makes a suggestion, which you can modify.
- Click
OK to paste the new file to the target project or folder.
- 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.
In order to delete a statechart file, proceed as follows:
- Right-click on the statechart file in the
Project Explorer view. The context menu appears.
- In the context menu, select
Delete.
- The
Delete Resources confirmation dialog appears. You have three choices:
- Click
Preview > to inspect what the delete operation is going to do, if confirmed.
- Click
Cancel to cancel the delete operation. Your statechart file will persist.
- Click
OK to actually delete the statechart file.