Create PopUp Menu for Object Functions and Procedures

tkotko

Member
Hi,

i have a plugin that creates popup menus for Functions and Procedures. This works perfectly for package functions and procedures via:

IDE_CreatePopupItem(PlugInID, 50, 'Info', 'FUNCTION');
IDE_CreatePopupItem(PlugInID, 50, 'Info', 'PROCEDURE');

I wanted to extend this to the object types we have created.

e.g.
CREATE OR REPLACE TYPE BODY T_TEST IS
MEMBER PROCEDURE Print

Unfortunately the documentation of Plugins does not directly refer to this type:
>> Some possible values for parameter ObjectType are:
 
Yes that is true but unfortunately this does not solve my issue.

If I click on a member function in PL/SQL Developer it only shows the "normal" PopUp window (without my new addition). Amongst others it shows the Test possibility which it should (for a procedure and a function) but my newly defined PopUp won't show up while clicking on a member function or procedure inside a TYPE OBJECT. (Neither by clicking on the function in the ProgrammWindow nor in the List-Window to the left)

 
Thanks for your reply.

Ok I assume by conclusion that adding a "popup-submenu-item" over such a type member function and member procedure inside a type object simply is not possible, as the lines:

IDE_CreatePopupItem(PlugInID, 50, 'Info', 'FUNCTION');
IDE_CreatePopupItem(PlugInID, 50, 'Info', 'PROCEDURE');

are already part of my plugin logic.

If activating the popup over package functions and procedures it contains my Menuitem "Info" allowing me to trigger some actions. If clicking on a type object member procedure or member function (for which you pointed out that the type does not differ i.e. FUNCTION and PROCEDURE) the popup-menu also shows up but does >not< contain my menuitem "Info". Hence it simply is not possible to add a popup-item for such a type.

Thanks very much
 

Similar threads

Back
Top