
Viewing methods from superclass(es)
Steve,
Quote:
> In the version of
Smalltalk I used to use (VW with some slightly
> nonstandard browser) I was able, when browsing a classes methods, to see
> the methods implemented by that classes superclasses as well. The names
> of these methods were, I think, a slightly lighter colour in the
> browser, to distinguish them from methods native to that class.
> This facility could be toggled on and off, and one could choose how far
> back into the inheritance tree to view all inherited methods (the
> default was everything but Object).
> I found this extremely useful, as I often want to know what a class
> does, rather than what it does which is unique.
> Is there any likelihood of this finding its way into Dolphin? Or is it
> already there but I haven't stumbled across it?
The forthcoming Dolphin 5 has this facility in its Class Hierarchy Browser
and the new System Browser. You can see a screenshot of the inherited method
stuff in action at www.object-arts.com/Beta5/SB.gif. As a matter of
interest, we use a method Color>>faded to "fade" the colours of the
inherited methods in the various lists in which they are displayed:
!Color methodsFor!
faded
"Answer a new color which is a faded copy of the receiver"
| rgb |
rgb := self asRGB.
^Color
red: (255 - rgb red) // 2 + rgb red
green: (255 - rgb green) // 2 + rgb green
blue: (255 - rgb blue) // 2 + rgb blue! !
!Color categoriesFor: #faded!*-unclassified!public! !
For more info on what's in Dolphin 5 see my reply to Ian B's "Someone had to
ask" thread on 22 Sept 2001.
Best Regards,
Andy Bower
Dolphin Support
http://www.object-arts.com
---
Are you trying too hard?
http://www.object-arts.com/Relax.htm
---