|F1 Help for Xtext based editor. [message #857276]
||Thu, 26 April 2012 12:09
| Andreas Graf
Registered: July 2009
I am currently wondering how to override the behavior for the "F1"-help in an Xtext editor.
We have written an Eclipse-Help for one of our DSLs, which ist available through Help->....
I would like to make this accessible by just pressing F1 in the DSL editor. The default behaviour seems to present a very generic page.
* Is there a Xtext-specific way to do that?
* I've learned about the org.eclipse.help.contexts extension point, which would require a contextID. From looking at the code, it seems that the XtextEditor does not register one, does it?
* Would the right way then be to inherit from XtextEditor, override createPartControl() and put PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
"myOwnFunkyID"); in it?
Powered by FUDForum
. Page generated in 0.01739 seconds