Comment #4 on issue 4156 by
[hidden email]: New widgets for
senders/implementors
http://code.google.com/p/pharo/issues/detail?id=4156PluggableTextMorphWithLimits is a cool stuff ^^
You have a warningLimit ( 350 by default ) and an alertLimit ( 2*
warningLimit by default ), and the number of characters of the text
displayed is counted ( without space, tabs, cr etc).
If you are below the warning limit, the background is white ( or the
default color ), if you are between warningLimit and alertLimit, the
background turn more and more yellow, and if you are above the alertLimit,
the background turn orange :)
It comes from a discussion I had with Nico yesterday. Even if every
programer knows it's bad to write long method, if it's not interactively
reminded to you, you do not pay attention or you just don't care. With this
little trick, when you see the background turning yellow, you start to
think hard how to refactor your code :)
(The idea comes from the little radar when you enter a town, with a little
smiley depending if you are over the speed limit or not. You really want to
see the happy face, and you slow down)
I will update the RecentSubmissions package, but we should discuss the
place of the class AbstractToolBrowser, because Nautilus inherits from this
class, but FlatMessageListBrowser should too ( it's wrote in the comment of
a duplicated method ).
So maybe AbstractToolBrowser should be moved into the system
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker