kogmbh/WebODF — pull request #615 by kossebau (2014-05-27 12:37:03+00:00)
Title: deduplicate tool creation code in Tools

Follow-up to https://github.com/kogmbh/WebODF/pull/614#discussion_r13059577

This whole code has the problem of not being reliable in the order that the tools are placed on the toolbar. And then there is a switch from Dojo toolit to Closure widgets pending in the next weeks. So not doing more simplifications.