Re: Enable/disable trigger path

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Enable/disable trigger path
Дата
Msg-id 45B0EF8B.9030102@postgresql.org
обсуждение исходный текст
Ответ на Re: Enable/disable trigger path  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgadmin-hackers
OK, nearly there... :-)

Guillaume Lelarge wrote:
> Dave Page a écrit :
>> [...]
>> Bullet pointed tips, purely because that's how they escaped from my
>> brain :-)
>>
>> - This should be on the Tools menu, not the View menu.
>>
>
> I don't understand what you mean by this. I put them on the Tools
> contextual menu but I don't see a View contextual menu. Can you give me
> more details ?

You had:

+    new enabledisableTriggerFactory(menuFactories, viewMenu, 0);
+    new enabledisableAllTriggersFactory(menuFactories, viewMenu, 0);

but that should be

+    new enabledisableTriggerFactory(menuFactories, toolsMenu, 0);
+    new enabledisableAllTriggersFactory(menuFactories, toolsMenu, 0);

Enabling/disabling triggers is something you do, not something you look at.

Anyhoo, I've applied a modifed version of the patch:

- Added a heap of refatoring to move actionFactories to live with the
objects they ac on, rather than the object's properties dialog.

- Changed enable/disable all to two factories. This is because we cannot
easily track the state of all triggers, and we definitely cannot
represent all enabled/some enabled/none enabled with a check menu item.
We now have enable all and disable all options, with no attempt to track
status.

- Recursively reset the enabled flag of the trigger objects under a
table after enabling/disabling them all.

Thanks, Dave

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: svn@pgadmin.org
Дата:
Сообщение: SVN Commit by dpage: r5877 - in trunk/pgadmin3: . pgadmin/dlg pgadmin/frm pgadmin/include/dlg pgadmin/include/schema pgadmin/include/slony pgadmin/schema pgadmin/slony
Следующее
От: svn@pgadmin.org
Дата:
Сообщение: SVN Commit by dpage: r5878 - in trunk/pgadmin3: . pgadmin/frm