Home Download Buy Blog Forum Support

ST2 Context menu

ST2 Context menu

Postby lucasdupin on Sun Jun 12, 2011 10:32 pm

I'm writing a plugin to add import statements on top of my classes.
I've already managed to list the possible class names and put it in an array.
By now I chose the most similar option to the selected text, since I could not find a way to present a context menu.

Is there any way of showing an UI element, so the user would be able to pick one option?
The best option for me would be to pass a lambda as a callback, receiving the selected option as a parameter.

Posts: 2
Joined: Sun Jun 12, 2011 10:09 pm

Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 4 guests