[Cuis-dev] New feature for CUIS: Remove Messages Without Senders
LUCAS ARIEL CONDE CARDO
lconde at fi.uba.ar
Tue Nov 25 12:56:50 PST 2025
Hi, I'm Lucas Conde, a Computer Engineering student at FIUBA (Faculty of
Engineering of the University of Buenos Aires). I'm currently taking
Professor Leveroni's Software Engineering course.
When doing the assignments in CUIS, after a refactor I often ended up with
many messages with no senders, and I had to remove them one by one. So I
thought it'd be cool to have a refactoring feature to remove them all at
once, just like “Remove all Unreferenced Inst Var…” does, but for messages.
Today I decided to develop it and present it here.
Making it work was really easy, I just had to add a
"removeMessagesWithoutSenders" message to the Browser class, which iterates
over all the messages of the selected class and removes those that have no
senders. It also shows a small window indicating whether it could remove
any messages and, if so, which ones were deleted. In BrowserWindow I
modified the "classListMenuSpec" message to add the new feature.
I hope you find it useful, and please let me know if there's anything in
the code that could be improved. Thanks for reading!
I'm attaching the ChangeSet with the modification. I used the CUIS version
downloaded as a ZIP file from the GitHub repo, I’m not completely sure
whether it includes all the relevant packages already loaded.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251125/752554e3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7711-CuisCore-LucasArielCondeCardo-2025Nov25-16h51m-LACC.001.cs.st
Type: application/octet-stream
Size: 4685 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251125/752554e3/attachment.obj>
More information about the Cuis-dev
mailing list