how to add a method? [message #1036527] |
Mon, 08 April 2013 13:52 |
Anton Hughes Messages: 66 Registered: January 2013 |
Member |
|
|
Hi
Im trying to learn how to use Papyrus.
I have watched the video at http://www.papyrusuml.org/home/liblocal/docs/Documentation/Java-Code-Gen/Papyrus-GenJava-CreateModel.swf
In the video the user drags a class object onto the canvas, then using a icon that magically appears - and looks like a settings icon - she adds a method.
I am not getting this icon appearing.
I sometimes get a horizontal toolbar show, but I cannot see any icon there for adding an operation. And I do not know how or why this toolbar appears.
I also cannot see any operations icon in the toolbar on the side of the canvas.
Is this a bug, or am I looking in the wrong place, or not using Papyrus correctly?
Br
Anton
---- UPDATE ----
I must have overlooked it. But I found the Operations item on main toolbox.
However, when I went to add an operation I get this error.
An error has occurred. See error log for more details.
An EditPart has to be selectable (isSelectable() == true) in order to get selected.
What does this mean? Have I dont something wrong?
[Updated on: Mon, 08 April 2013 13:55] Report message to a moderator
|
|
|
|
|
Re: how to add a method? [message #1461443 is a reply to message #1460610] |
Tue, 04 November 2014 15:11 |
|
Hi, Doug,
You need to add a parameter of direction-kind 'return'. Yes, a nice
little UML-ism. :-)
Cheers,
Christian
On 2014-11-04 01:46:09 +0000, Doug Dotson said:
> I succeeded in adding a class and then adding a method (operation).
> Problem is I can't figure out how to specify the return type. Thanks!
> Doug
|
|
|
Powered by
FUDForum. Page generated in 0.02059 seconds