@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); } }
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
protected Button createHelpButton( final Shell shell, final StepMeta stepMeta, final PluginInterface plugin ) { return HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
public static final Button setShellImage( Shell shell, JobEntryInterface jobEntryInterface ) { Button helpButton = null; try { final PluginInterface plugin = getPlugin( jobEntryInterface ); if ( plugin.getCategory().equals( BaseMessages.getString( PKGBASE, "JobCategory.Category.Deprecated" ) ) ) { addDeprecation( shell ); } helpButton = HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin ); shell.setImage( getImage( shell, plugin ) ); } catch ( Throwable e ) { // Ignore unexpected errors, not worth it } return helpButton; }
public static ShowHelpDialog openHelpDialog( Shell shell, PluginInterface plugin ) { if ( shell == null || plugin == null ) { return null; } if ( isPluginDocumented( plugin ) ) { return openHelpDialog( shell, getHelpDialogTitle( plugin ), plugin.getDocumentationUrl(), plugin.getName() ); } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); String msgKey = ""; // TODO currently support only Step and JobEntry - extend if required. if ( plugin.getPluginType().equals( StepPluginType.class ) ) { msgKey = "System.ShowHelpDialog.Step.HelpIsNotAvailable"; } else { msgKey = "System.ShowHelpDialog.JobEntry.HelpIsNotAvailable"; } mb.setMessage( BaseMessages.getString( PKG, msgKey, plugin.getName() ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); } return null; }
PluginInterface plugin = PluginRegistry.getInstance().findPluginWithId( LifecyclePluginType.class, /* TODO */ "HadoopSpoonPlugin" ); HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), docUrl, BaseMessages.getString( PKG, "NamedClusterDialog.Shell.Title" ) );