c++eclipseconstructordestructorpapyrus

Generating C++ constructors and destructors with Eclipse UML plug-in Papyrus


Our goal is to use the C++ code generator from Papyrus. One problem is that the stereotype for C++ constructors and destructors does not exist. I saw that a Java constructor stereotype exists, is there something similar for C++? If not, how could i create one by myself?

Tl;DR: How can a C++ constructor/destructor be created in the Papyrus designer?


Solution

  • Credits to the Eclipse forums.

    Papyrus designer queries whether the stereotypes "Create" and "Destroy" from the UML standard profile are applied to an operation. This profile is available via the "apply registered profile" dialog.