@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), plugin ); } } );
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); } }
public static Button createHelpButton( final Composite parent, final String title, final PluginInterface plugin ) { Button button = newButton( parent ); button.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), plugin ); } } ); return button; }
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; }
HelpUtils.createHelpButton( shell, BaseMessages.getString( PKG, "ClusterTestResultsDialog.Shell.Doc.Title" ), docUrl,
@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), title, url, header ); } } );
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
public static Button createHelpButton( final Composite parent, final String title, final String url, final String header ) { Button button = newButton( parent ); button.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), title, url, header ); } } ); return button; }
@Override public void widgetSelected( SelectionEvent evt ) { HelpUtils.openHelpDialog( parent.getShell(), docTitle, docUrl, docHeader ); } } );
@Override protected Button createHelpButton( Shell shell, StepMeta stepMeta, PluginInterface plugin ) { return HelpUtils.createHelpButton( helpComp, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
public void onHelp() { HelpUtils.openHelpDialog( dialogShell, getPlugin() ); }
protected Button createHelpButton( final Shell shell, final StepMeta stepMeta, final PluginInterface plugin ) { return HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin ); }
public void showDocumentMap() { try { URL url = new URL( DOCUMENTATION_URL ); HelpUtils.openHelpDialog( shell, STRING_DOCUMENT_TAB_NAME, url.toString() ); } catch ( MalformedURLException e1 ) { log.logError( Const.getStackTracker( e1 ) ); } }
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 boolean help() { spoonSupplier.get().getShell().getDisplay().asyncExec( () -> HelpUtils.openHelpDialog( this.parentShell, BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Tile" ), HELP_URL, BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Header" ) ) ); return true; }
PluginInterface plugin = PluginRegistry.getInstance().findPluginWithId( LifecyclePluginType.class, /* TODO */ "HadoopSpoonPlugin" ); HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), docUrl, BaseMessages.getString( PKG, "NamedClusterDialog.Shell.Title" ) );
public void helpJobEntry() { final JobEntryCopy jobEntry = (JobEntryCopy) selectionObject; String jobName = jobEntry.getName(); PluginInterface jobEntryPlugin = PluginRegistry.getInstance().findPluginWithName( JobEntryPluginType.class, jobName ); HelpUtils.openHelpDialog( shell, jobEntryPlugin ); }
public void helpStep() { final StepMeta stepMeta = (StepMeta) selectionObject; PluginInterface stepPlugin = PluginRegistry.getInstance().findPluginWithId( StepPluginType.class, stepMeta.getStepID() ); HelpUtils.openHelpDialog( shell, stepPlugin ); }
@Override public void widgetSelected( SelectionEvent arg0 ) { HelpUtils.openHelpDialog( shell, BaseMessages.getString( PKG, "EnterSelectionDialog.Help.Title" ), Const.getDocUrl( BaseMessages.getString( PKG, "EnterSelectionDialog.Help" ) ), BaseMessages.getString( PKG, "EnterSelectionDialog.Help.Header" ) ); } } );
@Override public void widgetSelected( SelectionEvent evt ) { String docUrl = Const.getDocUrl( BaseMessages.getString( Spoon.class, "Spoon.ArgumentsDialog.Help" ) ); String docTitle = BaseMessages.getString( PKG, "ArgumentsDialog.docTitle" ); String docHeader = BaseMessages.getString( PKG, "ArgumentsDialog.docHeader" ); HelpUtils.openHelpDialog( parent.getShell(), docTitle, docUrl, docHeader ); } } );