Last active
December 4, 2017 13:43
-
-
Save JohnLockwood/55613038f03d26058dcf31ff3c9ab671 to your computer and use it in GitHub Desktop.
Help Button for Pentaho PDI Custom Step Dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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