[enh] update to Browser has optional variables pane (like Smalltalk/V)

Stephan B. Wessels stephan.wessels at sdrc.com
Tue Feb 22 20:31:30 UTC 2000


Based on some feedback I have extended the optional variables pane change set
for the Browser family to include the following capability.  This has been
tested in Morphic and MVC on V2.8a.

The variable menu now has better context sensitivity to meta or instance side
viewing.

If a variable (instance or class) is selected in the pane you can now choose to
look directly at the references or defines for that variable from the menu.

An option to compile accessor methods for the selected instance variable is
provided in the menu.  Under normal circumstances a get accessor, set accessor
and initialize of accessor method will be generated for the instance var
selected.  If any of those three methods already exists either on the class or
any of the superclasses then those specific methods are NOT compiled and a
dialog is presented to show which ones were skipped.  If all 3
get/set.initialize are already defined then the option to generate them does not
appear in the menu,

Form of the generated get accessor is as follows for the category "accessing":
(metaClassOrganizer instance variable was selected)

metaClassOrganizer
 "Generated - Return the value of metaClassOrganizer."

 metaClassOrganizer == nil ifTrue: [self initializeMetaClassOrganizer].
 ^metaClassOrganizer


Form of the generated set accessor is as follows for the category "accessing":
metaClassOrganizer: anObject
 "Generated - Set the value of metaClassOrganizer to <anObject>."

 metaClassOrganizer _ anObject

Form of the generated initialize accessor is as follows for the category
"initialize variables":
initializeMetaClassOrganizer
 "Generated - Private.  Initialize the value of metaClassOrganizer."

 self metaClassOrganizer: (self error: '---missing initialization code---')

 - Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browser-enhancements.22Feb1528.cs
Type: application/x-unknown-content-type-cs_auto_file
Size: 50803 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000222/661090dc/browser-enhancements.22Feb1528.bin


More information about the Squeak-dev mailing list