xml - How to redefine help listener for StructuredTextEditor -
we developing eclipse plugin project. using structuredtexteditor displaying xml data. integrating our documentation via standard eclipse system. structuredtexteditor not working. example:
composite parent; ... parent.addhelplistener(new helplistener() { @override public void helprequested(helpevent e) { esbdevelopmentplugin.showhelp(help_id); } }); parent.setfocus();
for text editors call sethelpcontextid
method set context id.
note structuredtexteditor
sets id in initializeeditor
method must set id after this, perhaps overriding method:
@override protected void initializeeditor() { super.initializeeditor(); // set after 'super' call sethelpcontextid("your id"); }
Comments
Post a Comment