Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359270

Summary: [ClassDiagram] Multiplicity of return parameter of operation not shown in class diagram
Product: [Modeling] Papyrus Reporter: yirco <netswengineer>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gabriel.pascual, geekseb, pavanesh
Version: 0.8.1   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:

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