[Dev] Tool categories

Brett Wooldridge bwooldridge at alterpoint.com
Wed May 14 07:08:45 CDT 2008


Team,

I have added support for nested tool categories so that tools can be grouped under the submenu in an arbitrary fashion.  The category that a tool resides in is controlled by the new property 'tool.category'.  It works like this:

tool.category=Cisco,IOS

If a tool has this property then under the UI 'Tools' right-click menu would be a submenu called 'Cisco', and a submenu under that called 'IOS', and under that the tool itself.  I just used this example to illustrate that it can be nested.  However, I recommend that we stick to one subcategory deep at this time.  If you play around with it you'll see what I mean, it is not very nice to navigate a deep hierarchy to find a tool.

If there is no 'tool.category' property the tool appears directly under the 'Tools' menu, as it does now.  My recommendation is that unless a tool is specific to a category, we leave it at the 'top' (i.e. Ping, Traceroute, etc.) and only use categories when it declutters the top-level menu.  But we should resist the urge to create a 'General' category and start throwing tools in it.

What we do in terms of categories will affect how other tool authors categorize their tools, so let's keep it simple. I think if a vendor has more than one specific tool (IOS Password Change, IOS Software Distribution) it might warrant a category.  In this case I would stick with 'Cisco', rather than 'Cisco'->'IOS' or even 'Cisco IOS'.  Only when the Cisco category gets too full or confusing should another level be added or the tools recategorized.

I updated the test.properties file, so the test tool now lives in a deep category hierarchy (to exercise the framework and to serve as an example of why deep categories suck).

Ryan, you might want to go through and categorize the tools you think need their own submenu.

-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ziptie.org/pipermail/dev/attachments/20080514/c8a43147/attachment.html 


More information about the Dev mailing list