Skip to main content



      Home
Home » Modeling » Papyrus » Write Code in to Operation of a Class in to Class Model(Write Code in to Operation of a Class in to Class Model)
Write Code in to Operation of a Class in to Class Model [message #1220500] Thu, 12 December 2013 03:53 Go to next message
Eclipse UserFriend
I guy, I'm building a project and need to write the code of a operation, bat when click on Method I can only choose a State Machine or use diagram, bat I want to write the code in c++ to put in the function( operation). How can I do it?
Re: Write Code in to Operation of a Class in to Class Model [message #1220603 is a reply to message #1220500] Thu, 12 December 2013 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andrea,

You need to create a Behavior ("Method") for the Operation. You can choose an "OpaqueBehavior", with C++ as the Language, then type the body. You can also specify the Behavior e.g. as an Activity, StateMachine, Interaction...

When you assign a Method to an Operation, you can either select an existing one (If any), or create a new one (Using the green "+" in the selection dialog).

Regards,
Camille
Re: Write Code in to Operation of a Class in to Class Model [message #1220720 is a reply to message #1220603] Fri, 13 December 2013 04:41 Go to previous messageGo to next message
Eclipse UserFriend
OpaqueBehavior is very nice but the area to edit the body is ridiculous ... Maybe an improvement would be to link the JDT or CDT Editor depending on the language.

Johan
Re: Write Code in to Operation of a Class in to Class Model [message #1220799 is a reply to message #1220720] Fri, 13 December 2013 11:34 Go to previous message
Eclipse UserFriend
Hi Johan,

For CDT, there is currently work in progress in the context of Qompass Designer (Which is an extra component of Papyrus) to integrate the CDT Editor with Papyrus.

Regards,
Camille
Previous Topic:UML Profile as an Eclipse Plugin
Next Topic:[Solved:] How to apply Papyrus-Preferences to existing Diagram?
Goto Forum:
  


Current Time: Sun Jul 06 16:13:23 EDT 2025

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

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

Back to the top