|Re: Adding operations to Class Diagram [message #549130 is a reply to message #546917]
||Sat, 24 July 2010 19:58
Registered: July 2010
For example for the operation +getSearchResults():List<>|
1-click left on your class, and clik operation icon
2-In properties sheet set the name as getSearchResults
3-You can set the return type, in properties sheet -> Type.
To set List, you should have a Class named List, in your diagram(current resource package when you click in type properties), or in a other ecore file(load resources).
4-To set the parameters
Click left in your opeation class(in the diagram), and edit directly the name and types of parameters.For example, if your operation is op1(param1:String), write param1:String.
If you now go to context menu (click right) -> manage parameters, you can see your new parameter and type,(i can`t directly edit de type of a parameter in manage parameter)
I hope this help you.
> and return type of this operation,
properties sheet -> Type
Powered by FUDForum
. Page generated in 0.01769 seconds