Adds an helper for creating the context menu.
Authored by: jplang 2010-03-04
Parent: [r3541]
Child: [r3543]