|
|
Re: strings as message parameters? [message #1781744 is a reply to message #1781728] |
Mon, 12 February 2018 16:47   |
Eclipse User |
|
|
|
Quote:The easiest way is to declare the parameter with type String from the UML Primitive types: when choosing the type of a message parameter you get a list that begins with * (meaning "anything"), the list of Ansi C types, and at the bottom three options: "Select Existing Type...", "Create new Class..." or "Create new Enumeration...". Choose "Select Existing Type..." and under "Primitive Types" select "String". Do not choose "Ecore Primitive Types".
When I want add a parameter to a message and select the green '+', I get
- the list starting with '*',
- a submenu called 'Protocol Message Parameter with UI with existing Type...',
- a submenu called 'Protocol Message Parameter with UI with new Class...', and
- a submenu called 'Protocol Message Parameter with UI with new Enumeration...'.
Selecting '... with existing Type...', gets me
- a folder containing user-defined types in a folder named after my project,
- the UMLRT-RTS model library, and
- the AnsiCLibrary.
I cannot find 'Primitive Types' or 'String' in any of these...
Thanks
Juergen
|
|
|
Re: strings as message parameters? [message #1781846 is a reply to message #1781744] |
Tue, 13 February 2018 15:21  |
Eclipse User |
|
|
|
In a brand new model the UML Primitive Types are not automatically loaded. There are two things you can do:
1. In the model explorer, right-click the root-element
2. select "Import..." -> "Import Registered Package"
3. Select "UML Primitive Types".
Now you should see the package in the model explorer and in the "Existing Types..." dialog.
The second alternative is to add, for example, a log port in a capsule. This will automatically load the UML Primitive Types package.
|
|
|
Powered by
FUDForum. Page generated in 0.03741 seconds