Page 1 of 1

OpenApi customize tooltip of a ShapeElement

PostPosted: Thu May 12, 2022 12:28 am
We’re trying to overwrite a tooltip which is shown on a diagram element in MagicDraw.
The element is created by the
com.nomagic.magicdraw.openapi.uml.PresentationElementsManager::createShapeElement(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, com.nomagic.magicdraw.uml.symbols.PresentationElement parentPresentationElement) method.
The created ShapeElement for which we would like to change the tooltip is actually a com.nomagic.magicdraw.uml.symbols.shapes.PortView. The current tooltip reads:

PortName : PortType
flow properties
out ElementName1 : ElementType1
out ElementNameN : ElementTypeN

The desired change is to have some of the elements listed under the separator "flow properties" written with bold.
Is this possible? What are the required steps to achieve this?