[ENH] Control over Generation of Instance Variable Accessors
Andrew P. Black
apb at cse.ogi.edu
Tue Jan 11 21:41:21 UTC 2000
I posted this previously, around Christmas, but didn't understand the
[ENH] protocol, so I'm doing it again.
This change set is an enhancement to the Browser. It adds a menu
item to the class pane of the Browser, called 'auto accessors ...'.
It is adjacent to the show instance variable references and
assignments menu items. It brings up a preferences dialog that
shows which reader and writer methods (also called getters and
setters) already exist for each instance variable, and whether the
code is custom or auto-generated. If there is no accessor, clicking
on 'false' will generate one. If there is an auto-generated
accessor, clicking on 'true' will remove it. Custom accessors can't
be overwritten or removed from this dialog.
Code can be downloaded from
<http://www.cse.ogi.edu/cse504/programs/AccessorCodeGen.st> and is
also attached to this message.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AccessorCodeGen.st
Type: application/octet-stream
Size: 13954 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000111/f581bfab/AccessorCodeGen.obj
More information about the Squeak-dev
mailing list
|