Book a Demo

Author Topic: reflecting changes to base class method names  (Read 4277 times)

toajax

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
reflecting changes to base class method names
« on: December 09, 2004, 12:44:25 pm »
Hi,

Have a question about class diagrams. Here is the scenario.

The diagram has an interface class 'Intf' and a class 'Cls' that realizes the interface.

'Intf' has a method 'm1'. When creating the 'realizes' link between 'Intf' and 'Cls', I selected 'm1' as a method that I wanted to override, so 'Cls1' shows 'm1'.

Now I want to change the method name from 'm1' to 'm2' in 'Intf'. Is there a way to update the name 'm1'  in 'Cls' to 'm2' without manually having to edit 'Cls'.

thomaskilian

  • Guest
Re: reflecting changes to base class method names
« Reply #1 on: December 09, 2004, 12:47:33 pm »
Just again reading from my Mac (no EA :'(). There's something like "overwrite implementation". Search the help file (or wait for someone else to respone soon  :))

toajax

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: reflecting changes to base class method names
« Reply #2 on: December 09, 2004, 12:53:48 pm »
Hi,

It's the override operations/interfaces dialog.

The problem is it shows 'm2' as a new method that has not been overridden in 'Cls'.

If I select it, then 'Cls' now has two methods 'm1' and 'm2'


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: reflecting changes to base class method names
« Reply #3 on: December 09, 2004, 01:34:51 pm »
Pretty sure that EA doesn't do this at all, though you could write an addin to do it for you I think.

You may find the following thread interesting. http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1086701333;start=2#2

Simon

toajax

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: reflecting changes to base class method names
« Reply #4 on: December 10, 2004, 09:45:21 am »
Thank you for your quick response. I am fairly new to EA, so will look up some resources to write Add-Ins.

Thanks again

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: reflecting changes to base class method names
« Reply #5 on: December 10, 2004, 09:53:38 am »
G'day,

I've never tried this before, so it's up to you to experiment ...

The model is just stored in a database.  Maybe you could do a search and replace through the back door, instead of doing it via EA.
Cheers and best regards.