Adding operations to Class Diagram [message #625590] |
Tue, 30 March 2010 05:06  |
Eclipse User |
|
|
|
Hi,
I am trying to add operations to a class diagram. I am able to add simple operation like add(), but how can I set In parameters and return type of this operation,please suggest
thanks,
|
|
|
|
|
Re: Adding operations to Class Diagram [message #625836 is a reply to message #625831] |
Sat, 24 July 2010 19:58  |
Eclipse User |
|
|
|
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.53025 seconds