Skip to content

Instantly share code, notes, and snippets.

@JohnLockwood
Last active December 4, 2017 13:43
Show Gist options
  • Save JohnLockwood/55613038f03d26058dcf31ff3c9ab671 to your computer and use it in GitHub Desktop.
Save JohnLockwood/55613038f03d26058dcf31ff3c9ab671 to your computer and use it in GitHub Desktop.
Help Button for Pentaho PDI Custom Step Dialog
public class MyStepNameDialog extends BaseStepDialog implements StepDialogInterface {
// ...
/*
This example shows how to implement a help button in a PDI custom step dialog. This assumes
that you're including a docs directory in your deployment zip, with a help file in HTML format
named "MyStepName.html"
*/
@Override
protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) {
return HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ),
plugin.getPluginDirectory() + "/docs/MyStepName.html", plugin.getName() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment