Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » how to add a method?
how to add a method? [message #1036527] Mon, 08 April 2013 13:52 Go to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 32
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 #1456887 is a reply to message #1036527] Thu, 30 October 2014 20:45 Go to previous messageGo to next message
Will Darby is currently offline Will DarbyFriend
Messages: 1
Registered: October 2014
Junior Member
I'm just starting to use Papyrus, but so far it seems very powerful for an open source UML tool.

I was able to create a method by selecting the parent Object in the 'Model Explorer' and selecting New Child->Create a new Operation

Note that to see the method by selecting the element and choosing Show/Hide Contents (ghost icon)-> operations.
Re: how to add a method? [message #1460610 is a reply to message #1456887] Mon, 03 November 2014 19:05 Go to previous messageGo to next message
Doug Dotson is currently offline Doug DotsonFriend
Messages: 5
Registered: November 2014
Junior Member
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
Re: how to add a method? [message #1461443 is a reply to message #1460610] Tue, 04 November 2014 15:11 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 830
Registered: July 2009
Senior Member
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
Previous Topic:problem in installing rsa model importer in papyrus
Next Topic:Need help
Goto Forum:
  


Current Time: Wed Nov 26 00:47:18 GMT 2014

Powered by FUDForum. Page generated in 0.15360 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software