Eclipse context help through Eclipse’s help button

As mentioned in my previous article there is a third alternative for providing context help. This is also the most simple of all. On your wizard page class all you have to do is overriding the method performHelp:

public void performHelp(){
	String contextHelpID = "ch.sahits.phpclassgenerator.filename";
	getShell().setData(ECLIPSE_HELP,contextHelpID);
	PlatformUI.getWorkbench().getHelpSystem().displayHelp(contextHelpID);
}

You will notice that this is the same code as in the widgetSelected method.

Context Help in Eclipse revisited

Earlier this week Paul (who by the way took over the PHP class generator and revived it) asked me for help with help. Basically he had a problem of integrating context sensitive help into the plug-in. He read my earlier article on this topic but could not manage. Therefore I promise to have a look. „Context Help in Eclipse revisited“ weiterlesen