[Cuis-dev] Method Refactorings on Method Set Window List

Ulises Lopez Pacholczak ulilopezpacho at gmail.com
Mon Dec 2 17:54:54 PST 2024


Hello,

I would like to propose the following changes to Cuis.

Cuis refactorings are amazing, and it would be a great idea to have them
available in more places. One interesting one is the Message Set Window
(which is used by senders and implementors, for example). I added some
refactoring methods to the right-click menu of this window ("rename...",
"change keyword order...", "add parameter...", "remove parameter...",
"inline method...").

I did it by creating a superclass of BrowserClass called
"MethodRefactorProvider", which is a provider of different Method
Refactoring methods so that they can be used in more places than the
browser. I pushed up the corresponding methods of this refactorings, so
there is not repeated code.

Although it is a nice addition to Cuis, I wasn't able to add "move to
instance/class method", "push up", "add in superclass as
subclassResponsability", "push down to subclasses" or "push down to one
subclass" as they require to recalculate the "senders" or "implementors".

I wasn't able to do that, because Method Set Window is created with the
list of elements that should be shown in the Message List. That is why I
wanted to ask the community if it made sense to modify the model in order
to be able to support this other refactors. In my opinion, it only makes
sense to have the first four refactors on this window as they are the only
ones that are useful without looking at the hierachy (I wouldn't include
"inline method" although I made it work).

I leave my changes, so, if you consider, they can be included to the Dev
image. I can remove the "inline method" if you would like to.
Thank you,
Ulises
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241202/dd5a1f6a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6771-CuisCore-Ulises-2024Dec02-22h00m-ULP.001.cs.st
Type: application/octet-stream
Size: 7806 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241202/dd5a1f6a/attachment.obj>


More information about the Cuis-dev mailing list