Book a Demo

Author Topic: Refactor operations of a class  (Read 3495 times)

Javi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Refactor operations of a class
« 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

  • sum()
  • substract()


I would like to refactor all of them at once as

  • myPrefix_sum()
  • myPRefix_substract()

IS this possible in Enterprise architect?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Refactor operations of a class
« Reply #1 on: February 18, 2021, 02:33:20 am »
You can write a little script to do that for you.

Geert

Javi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Refactor operations of a class
« Reply #2 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!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller