[pgAdmin][RM4139] Drag and drop object names in Query Editor fromBrowser Tree

Поиск
Список
Период
Сортировка
От Aditya Toshniwal
Тема [pgAdmin][RM4139] Drag and drop object names in Query Editor fromBrowser Tree
Дата
Msg-id CAM9w-_mxRdG6peLx3VdF1z-+yY11qQEPNTQ0ekT5TNaEWT05QQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [pgAdmin][RM4139] Drag and drop object names in Query Editor fromBrowser Tree  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
Hi Hackers,

Attached is the patch to allow tree nodes to be dragged and dropped in query editor wherever you take the drop cursor. The drop text will be fully qualified and double quoted if required.
For functions/procedures it will drop the the label stripping away the parameter names, with empty pair of round brackets. It will also set the focus cursor inside the brackets if there were params otherwiser to the end of text.
For adding a node type, you need to register it in browser.js along with a callback function which will return drop text along with cursor positioning and selection. Currently, I have registered for "table partition type sequence package view mview foreign_table edbvar schema column edbfunc function edbproc procedure".

Please note, the drag design customisation is not supported in IE.

Kindly review.

--
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
Вложения

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

Предыдущее
От: Aditya Toshniwal
Дата:
Сообщение: Re: [GSoC][Patch] Automatic Mode Detection V1
Следующее
От: Khushboo Vashi
Дата:
Сообщение: Re: Getting Involved