Get linked textbox


I have an activity diagram with activityaction items.
These items are linked to textbox (Generic connector).
How can i get theses textbox from IActivityActionUIModel or IActivityAction?
I guess I can get it with IActivityActionUIModel ?

Thanks for your help.

Hi Maxihm,

Depend on the direction of the generic connector, you can find it using either toFromConnectorArray() or toToConnectorArray() method of IActivityActionUIModel (which are actually inherited from IBaseDiagramElement). Each element in the array would be an instance of IConnectorUIModel, you can then check if it is the generic connector you seek, and use getFromShape() or getToShape() to get the associated text box.

Hope this helps,


Thanks for your answer.
It’s what I needed.