The toolbox is used earlier in the execute Method to check if it is visible when a new Layer is added and close it if so.
Authored by: wellgis 2013-06-25
Parent: [r301]
Child: [r303]