While the "every plugin could declare to be in a given category" is easily casted to the Macro world, I am not sure how to translate the "every plugin is free to add new categories".
How about like this: * Each macro has a getCategory() method. * Macro manager calls this method and if the category is an existing one, it is put into that collection. * If that category is new, a new category (collection) is created and the macro put inside it. * Clients will call methods like getCategories() getMacrosForCategory() on MacroManager(). But things are little complex with macros for various syntaxes and all. Just a thought. - Asiri
-Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs