[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Adding a context sensitive menu to the editor

I'm working on a plugin performing some analysis of code (using ASTNodes) and have managed to add context-menus to the package-explorer which works just fine. However to perform some of the analysis I want to let the user select a specific piece of code an perform some action on it.
My problem is twofold: how to add a popup-menu to the code-editor and how to trace whatever the user clicked on to the abstract representation of the code (like a ASTNode or IJavaElement).
Does anyone have experience with this kind of functionality?


--
Erik Wikström