We are developing Eclipse plugin project. We are using StructuredTextEditor for displaying XML data. Now we are integrating our documentation via the standard Eclipse help system. But for StructuredTextEditor it is not working. For example:
Composite parent;
...
parent.addHelpListener(new HelpListener()
{
@Override
public void helpRequested(HelpEvent e)
{
EsbDevelopmentPlugin.showHelp(HELP_ID);
}
});
parent.setFocus();
For text editors just call the
setHelpContextIdmethod to set the help context id.Note that
StructuredTextEditorsets the help id in theinitializeEditormethod so you must set your id after this, perhaps by overriding that method: