Overrite "Show Tooltip Description (F2)" in CDT editors [message #333703] |
Wed, 24 December 2008 04:59 |
Eclipse User |
|
|
|
Originally posted by: denizstij.hotmail.com
Hi,
We have developed a hover plug-in similar to "Show Tooltip Description (F2)" functionality for C++ source editor (with cdt). It works fine with mouse hovering. Similar to eclipse jdt, we able to show C++ API in a custom swt pop-up browser, when an API is hovered with mouse (by implementing ICEditorTextHover, ITextHoverExtension, ITextHoverExtension2 interfaces).
In addition hovering, we would like to assign a keyword for this plug-in similar to eclipse jdt. I mean, when we press F2 key on an API, we would like to our custom swt pop-up browser is shown, likewise hovering by mouse .
At the moment, when we press F2, default eclipse pop-up browser is shown with only "null" content (i think it is cos it is C++ editor)
I would like to override default eclipse F2 behaviour with our new plug-in.
I tried some standard way of overrding actions (ITextEditorActionDefinitionIds.SHOW_INFORMATION), commands and key bindings, but i could not get anywhere.
Anybody can give me a starting point or refer a resource?
Many thanks in advance.
Deniz
|
|
|
Powered by
FUDForum. Page generated in 0.02948 seconds