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?
we did something similar in a former big project I worked on. I am not in our office currently, so I cannot look at the code. As far as I know there is no Xtext hook for that. Your last suggestion seems like a first entry point.
You could try contacting the Leipzig office to see whether someone is willing to dig into the code. If it is not too urgent, I try to have a look over the weekend.