Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Overrite "Show Tooltip Description (F2)" in CDT editors

Hi Deniz,
to override the default F2 hover action for an editor is to call 

   setAction(ITextEditorActionConstants.SHOW_INFORMATION, yourAction)

You would need to do this for every C/C++ editor instance that gets

Another possibility (requires CDT 5.x) is to contribute the API
documentation to the org.eclipse.cdt.ui.CHelpProvider or
org.eclipse.cdt.ui.HelpInfo extension points. The default F2 information
presenter will display the provided documentation in the same way as the
Documentation hover.



	From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Deniz Turan
	Sent: Monday, January 19, 2009 1:00 PM
	To: cdt-dev@xxxxxxxxxxx
	Subject: [cdt-dev] Overrite "Show Tooltip Description (F2)" in
CDT editors
	I asked a question sometime back on eclipse.platform forum. I
have not got any reply there, it seems it was wrong forums to ask.
	Link of my question on eclipse.platform  is here:
	Any idea ? 
	Thanks in advance. 

Back to the top