The following code updates the Catalogue editor so that wms definitions can be edited.
The editor supports all the options which the mapping functionality offers: