Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Javi on February 17, 2021, 07:30:58 pm

Title: Refactor operations of a class
Post by: Javi on February 17, 2021, 07:30:58 pm
Hello,

I was wondering whether there is a way to refactor the naming of all operations of a class and its class types.

I mean if I have a class that has got these methods



I would like to refactor all of them at once as


IS this possible in Enterprise architect?
Title: Re: Refactor operations of a class
Post by: Geert Bellekens on February 18, 2021, 02:33:20 am
You can write a little script to do that for you.

Geert
Title: Re: Refactor operations of a class
Post by: Javi on February 19, 2021, 09:38:12 pm
You can write a little script to do that for you.

Geert

So it is not natively supported...

Could you point me out where I can find documentation to do so?

Thanks!
Title: Re: Refactor operations of a class
Post by: Geert Bellekens on February 19, 2021, 11:02:57 pm
Scripting documentation: https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/automation/the_scripter_window.html (https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/automation/the_scripter_window.html)

Examples: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library (https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library)

Geert