Hmm, true :) :P.

shoutAboutToStyle: aPluggableShoutMorphOrView
    aPluggableShoutMorphOrView getText = self contents ifTrue: [ ^false ].
    aPluggableShoutMorphOrView classOrMetaClass: self object class.
    ^ true

shoutAboutToStyle: aPluggableShoutMorphOrView
    aPluggableShoutMorphOrView getTextSelector == #trash ifFalse: [ ^false
].
    aPluggableShoutMorphOrView classOrMetaClass: self object class.
    ^ true

Here I've two solutions but no one pleases me...

Maybe

shoutAboutToStyle: aPluggableShoutMorphOrView
    aPluggableShoutMorphOrView getTextSelector == *self
trashSelector*ifFalse: [ ^false ].
    aPluggableShoutMorphOrView classOrMetaClass: self object class.
    ^ true

And then use #trashSelector on UIManager?

On Fri, Jan 13, 2012 at 7:01 PM, Lukas Renggli <[email protected]> wrote:

> > I added the following method to inspector and styling turned on:
> >
> > shoutAboutToStyle: aPluggableShoutMorphOrView
> >     ^ true
> >
> > Should we add it?
>
> Maybe you also want to set the class context so that it doesn't
> highlight variable references as errors?
>
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>
>

Reply via email to