| ... |
... |
@@ -382,9 +382,4 @@ |
| 382 |
382 |
1. Register the {{code language="none"}}TransitionAddFeature{{/code}} in the {{code language="none"}}getAddFeature{{/code}} method of the {{code language="none"}}TuringFeatureProvider{{/code}} in the same way as done before for the {{code language="none"}}StateAddFeature{{/code}}. |
| 383 |
383 |
1. Test the features in the diagram editor. The palette should now contain an entry for creating transitions. |
| 384 |
384 |
|
| 385 |
|
-= Handling Text Labels = |
| 386 |
|
- |
| 387 |
|
-The last section of this tutorial is about text labels in the graphical editor. We will use such labels for state names and transition specifications. The steps required for these tasks are given only coarsely here, since you should now be able to find out yourself about the details using the [[Graphiti documentation>>url:http://www.eclipse.org/graphiti/documentation/||shape="rect"]]. |
| 388 |
|
- |
| 389 |
|
-1. Add a {{code language="none"}}Text{{/code}} element to states in the {{code language="none"}}StateAddFeature{{/code}} in order to display the name of each state. |
| 390 |
|
-1. Create a new class {{code language="none"}}StateDirectEditingFeature{{/code}} extending {{code language="none"}}AbstractDirectEditingFeature{{/code}} and register it by overriding {{code language="none"}}getDirectEditingFeature{{/code}} in the {{code language="none"}}TuringFeatureProvider{{/code}}. This new feature is responsible for connecting the edited text with the name attribute of states. |
|
385 |
+\\ |