<
From version < 9.1 >
edited by msp
on 2012/11/07 09:13
To version < 10.1 >
edited by msp
on 2012/11/07 09:37
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -382,4 +382,9 @@
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 -\\
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.
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -3604585
1 +3604588
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/3604585/Graphical Modeling with Graphiti
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/3604588/Graphical Modeling with Graphiti