Little Suggestion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Little Suggestion

Dmitry Zamotkin-5
A little suggestion -- color coding/icon for "not yet implemented" methods.
Something like this:


MethodCategory class>>notYetImplementedMethods
    ^self name: '*-not yet implemented'


CompiledMethod>>isNotYetImplemented
    ^MethodCategory notYetImplementedMethods includesMethod: self


CompiledMethod>>icon
    "Answers an Icon that can be used to represent this object."

    self isDeprecated ifTrue: [^self class deprecatedIcon].
    self isNotYetImplemented ifTrue: [^DeadObject icon "or something more"].

    ^self isPrivate
        ifTrue: [self class privateIcon]
        ifFalse: [self class publicIcon]

--
Dmitry Zamotkin