Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » UML class diagram & C++ Return type disappears
UML class diagram & C++ Return type disappears [message #1804884] Tue, 02 April 2019 17:39 Go to next message
Martin Holloway is currently offline Martin HollowayFriend
Messages: 1
Registered: April 2019
Junior Member
Hi
If I create an operation with a return type, it disappears!
To reproduce:-
1. Create a new papyrus project
2. Create a class diagram
3. Create a new package
4. Create within it a new class
5. Create within that a new operation
6. Give the operation a return type (eg Ansi C float)
7. Generate the code and save the project
8. Select the class and click Designer->Open a CDT editor
9. Save the project
10. Hey where's the operation's return type gone???

11. Set the return type again, and get two '@return' lines in the comment before the operation in the source etc
Re: UML class diagram & C++ Return type disappears [message #1805095 is a reply to message #1804884] Fri, 05 April 2019 20:13 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 227
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

I can reproduce the problem. Can you please post a bug.

Ansgar
Re: UML class diagram & C++ Return type disappears [message #1805100 is a reply to message #1805095] Sat, 06 April 2019 05:01 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6538
Registered: July 2009
Senior Member
Hi

Surely you need a Return Parameter to define the Return Type?

Regards

Ed Willink
Previous Topic:Where is Papyrus 4.3.0 RCP download thanks
Next Topic:Property as a border item
Goto Forum:
  


Current Time: Thu Dec 12 01:05:21 GMT 2019

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

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

Back to the top