Book a Demo

Author Topic: Refactoring Function  (Read 5026 times)

malmoth

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
  • On ne réveille pas un malmoth qui dort
    • View Profile
Refactoring Function
« on: March 16, 2006, 12:45:31 pm »
I'd like that EA provides the ability to rename a class or interface (or whatever) throughout the whole project including the generated source files.
Indeed, if one rename a class with EA HMI, this will only change the class declaration, and every other call of the class will refer to the former name, and the project won't compile.
Regards,

Malmoth

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Refactoring Function
« Reply #1 on: March 16, 2006, 01:04:37 pm »
I agree. This could apply throughout the model: attributes, states, whatever.

Of course some of this works now, but for classes and interfaces it can be a bit dicey at best.

There are also issues if you are round tripping code generation. Severl of the forum gurus have suggested (my word) that forward generation is where we should be putting our emphasis, so the ability to globally reflect name changes would fit right in - make the change and build a new output tree.
No, you can't have it!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Refactoring Function
« Reply #2 on: March 16, 2006, 07:57:55 pm »
This might be a nice feature, but if implemented, I'd like the propagation to be optional or optionally constrained to the current package or view.
« Last Edit: March 16, 2006, 07:58:31 pm by jeshaw2 »
Verbal Use Cases aren't worth the paper they are written upon.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Refactoring Function
« Reply #3 on: March 17, 2006, 05:38:32 am »
Good point Jim,

Considering all the things we use packages for, and the reasons behind them, there should be some way to limit the 'global' implications of such a change. Beats going back to the good old days before namespaces.

Something along the lines of VS' scoping for search and replace - you can limit to the current procedure, file, or everything.
No, you can't have it!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: Refactoring Function
« Reply #4 on: March 17, 2006, 06:31:17 am »
Exactly!

In addition to using EA in my consulting practice (where the diagrams are various views on the same project), I often use an EA project either for my lectures or as a repository for figures in several (disjoint) monographs.  

In an EA project supporting my monographs and lectures, the individual diagrams do not necessarily relate to the same physical project.  Making changes in one diagram should not have side effects in another.

I need control of the domain of the change.
« Last Edit: March 17, 2006, 06:34:07 am by jeshaw2 »
Verbal Use Cases aren't worth the paper they are written upon.