Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Java code generation for operation bodies
Java code generation for operation bodies [message #1712861] Wed, 28 October 2015 20:56 Go to next message
Robert Smith is currently offline Robert SmithFriend
Messages: 4
Registered: October 2015
Junior Member
I am attempting to create a model of a Java package in Papyrus. However, when I generate the Java code, function bodies always contain only the word "null", instead of any code I put in the model. I assume I'm doing something wrong, so can someone please look over my workflow and point out my mistake?

I click on the operation, then under the Properties view I click the add button by Method. In the method dialog, I add a new ObaqueBehavior. I select the operation's class as the behavior's Container and ownedBehavior as the Reference. Then, I name the behavior "OperationBody", select "JAVA" as the language, and type in some code for the function. Then I right click the class and select Java->Generate Java Code.

What am I doing wrong?
Re: Java code generation for operation bodies [message #1713055 is a reply to message #1712861] Fri, 30 October 2015 12:36 Go to previous message
Joachim Engelhardt is currently offline Joachim EngelhardtFriend
Messages: 53
Registered: September 2013
Member

I see the problem and can reproduce it. Unfortunately I cannot see, what
you/we are doing wrong. I tried it with the latest Neon version. In a
Luna version of Papyrus, the code generator results nothing for the
body, not even "null".
Previous Topic:Custom Property View Widget for Operation Result Parameter
Next Topic:Adaptation of attributes filters in defined MARTE stereotypes
Goto Forum:
  


Current Time: Fri Apr 19 23:01:50 GMT 2024

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

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

Back to the top