|
Re: Adding operations to Class Diagram [message #625593 is a reply to message #625590] |
Thu, 01 April 2010 09:36 |
Eclipse User |
|
|
|
Originally posted by: arendt.mathematik.uni-marburg.de
Hi,
> how can I set In parameters
context menu (click right) -> manage parameters
> and return type of this operation,
properties sheet -> Type
GreetX,
Thorsten
|
|
|
|
Re: Adding operations to Class Diagram [message #625836 is a reply to message #625831] |
Sat, 24 July 2010 23:58 |
Andres Messages: 57 Registered: July 2010 |
Member |
|
|
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.08326 seconds