pl/sql developer plugin to insert into the special text to the cursor position of current window?

kedouwen

Member
I'm study how to develop plsql-developer plugin by the plugindoc.pdf and I'm using C++.

Now,I want to insert into the special text to the cursor position of current window,

The function IDE_SetText will Covered the old text in the editor of current window.

IDE_GetCursorX and IDE_GetCursorY get the position of the cursor in the current editor.

What's next?
 
You want to insert text, but not overwrite a selected text?

Maybe you can use GetCursorX and GetCursory to get the position, and set it again with IDE_SetCursor. This should reset the selection.

You can also check with IDE_GetSelectedText if a portion is selected, and insert it again together with your text.

 
Back
Top