Undo fails after perfomAction()

Hi,

I am having problems when trying to undo changes made through my plug-in.

More precisely, I have a VPContextActionController that removes existing stereotypes of an IClass model element and adds a new one to it. For that, I remove and add stereotypes based on strings rather than using IStereotype objects.

The problem is that Visual Paradigm is unable to perform “Undo” (or “Ctrl+Z” with the shortcut) restoring the original settings of that IClass.

Is this a known issue? Is there a workaround for this?

Kind regards,
Claudenir

Hi claudenirmf,

Undo / Redo is not yet supported in OpenAPI.
You need to develop your own undo / redo logic manually.

Best Regards,

Roy.