def _create_preferences_dialog_service(self):
        from .preferences_dialog import PreferencesDialog

        dialog = PreferencesDialog(application = self.application)
        dialog.trait_set(categories = self.preferences_categories,
                         panes = [ factory(dialog = dialog)
                                   for factory in self.preferences_panes ])
        return dialog
Shows the context menu
dataset/ETHPy150Open enthought/envisage/envisage/ui/tasks/tasks_plugin.py/TasksPlugin._create_preferences_dialog_service--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/widgets/errors_table.py/ErrorsTable._show_context_menu