[ANN] AutomaticMethodCategorizer 1.0

Diego Fernandez diegof79 at gmail.com
Fri Jan 13 03:42:31 UTC 2006


  Hi all! This is just to announce my first package for Squeak :)
Package description:
This package allows you to categorize uncategorized methods based on
rules.For example you can put all uncategorized methods in SomeTest
that begins
with "test" under the "tests" category using:
(AutomaticMethodCategorizer
          for: SomeTest organization           using:
(PluggableMethodCategorizationRule                     whenSelectorMatches:
'initialize*'                      andClassInheritsFrom: TestCase
categorizeIn: #'tests')) value
Other rule to use the super class category is included (this is the standard
behavior of Browser>>#categorizeAllUncategorizedMethods).
If the AutomaticMethodCategorizer is created with #for: a default list of
rules will be used. See AutomaticMethodCategorizer-ModelTests for more
examples.
Also you can modify the System Browser to use the automatic method
categorizer, evaluating:
AutomaticMethodCategorizerInstaller new modifySystemBrowsers
WARNING: The installer overwrites
Browser>>#categorizeAllUncategorizedMethods
Acknowledgments: The idea of method categorization based on rules was taken
from a VAST tool created by Maximiliano Contieri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060113/f8a521fd/attachment.htm


More information about the Squeak-dev mailing list