#NEWLINE# def _add_extension_point( self , point ) : #NEWLINE# #INDENT# ' Add an extension point to the workbench.\n\n        Parameters\n        ----------\n        point : ExtensionPoint\n            The ExtensionPoint to add to the workbench.\n\n        ' #NEWLINE# point_id = point . qualified_id #NEWLINE# if ( point_id in self . _extension_points ) : #NEWLINE# #INDENT# msg = "extension point '%s' is already registered" #NEWLINE# raise ValueError ( ( msg % point_id ) ) #NEWLINE# #UNINDENT# self . _extension_points [ point_id ] = point #NEWLINE# if ( point_id in self . _contributions ) : #NEWLINE# #INDENT# to_add = self . _contributions [ point_id ] #NEWLINE# self . _update_extension_point ( point , [ ] , to_add ) #NEWLINE# #UNINDENT# self . extension_point_added ( point_id )