Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359270 - [ClassDiagram] Multiplicity of return parameter of operation not shown in class diagram
Summary: [ClassDiagram] Multiplicity of return parameter of operation not shown in cla...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: All Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 12:31 EDT by yirco CLA
Modified: 2014-06-04 03:41 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yirco CLA 2011-09-28 12:31:31 EDT
Hi,

According to the UML spec an operation has the following notation:

[<visibility>] <name> ‘(‘ [<parameter-list>] ‘)’ [‘:’ [<return-type>] [‘[‘ <multiplicity> ‘]’] [‘{‘ <oper-property> [‘,’ <oper-property>]* ‘}’]]

where:
• <multiplicity> is the multiplicity of the return type

Papyrus 0.8.2 does not show the multiplicity for the return type.

Reproduction:

*) Create a class on a class diagram.
*) Add an operation to the class.
*) Add a return parameter to the operation in the Properties View.
*) Set the multiplicity of the return parameter to 1..*
*) While the operation is selected in the class diagram, in the Properties View select the Appearance tab and tick Parameters Multiplicity. The multiplicity is not shown in the diagram.
Comment 1 Gabriel Pascual CLA 2014-05-27 11:36:23 EDT
Gerrit review is available at https://git.eclipse.org/r/#/c/27385/

I added possibility to display multiplicity  of operation return by a property of diagram appearance in associated properties view.
Comment 2 Remi Schnekenburger CLA 2014-06-04 03:41:46 EDT
Merged in Master. Closing bug