Java code generation for operation bodies [message #1712861] |
Wed, 28 October 2015 20:56 |
Robert Smith 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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03425 seconds