@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), plugin ); } } );
@Override public void widgetSelected( SelectionEvent evt ) { HelpUtils.openHelpDialog( parent.getShell(), docTitle, docUrl, docHeader ); } } );
@Override public void widgetSelected( SelectionEvent arg0 ) { openHelpDialog( parent.getShell(), title, url, header ); } } );
public void onHelp() { HelpUtils.openHelpDialog( dialogShell, getPlugin() ); }
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 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; }
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 ); } } );
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; }
/** * Call help dialog */ public void help() { XulDialog xulDialog = getDialog(); Shell shell = (Shell) xulDialog.getRootObject(); HelpUtils.openHelpDialog( shell, getPlugin() ); }
public void help() { Shell shell = getJobEntryDialog(); PluginInterface plugin = PluginRegistry.getInstance().findPluginWithId( JobEntryPluginType.class, jobEntry.getPluginId() ); HelpUtils.openHelpDialog( shell, plugin ); }
public void help() { XulDialog xulDialog = (XulDialog) getXulDomContainer().getDocumentRoot().getRootElement().getFirstChild(); Shell shell = (Shell) xulDialog.getRootObject(); PluginInterface plugin = PluginRegistry.getInstance().findPluginWithId( JobEntryPluginType.class, jobEntry.getPluginId() ); HelpUtils.openHelpDialog( shell, plugin ); }
public void help() { JobEntryInterface jobEntry = getJobEntry(); XulDialog xulDialog = (XulDialog) getXulDomContainer().getDocumentRoot().getElementById( XUL_AMAZON_EMR_JOB_ENTRY_DIALOG ); Shell shell = (Shell) xulDialog.getRootObject(); PluginInterface plugin = PluginRegistry.getInstance().findPluginWithId( JobEntryPluginType.class, jobEntry.getPluginId() ); HelpUtils.openHelpDialog( shell, plugin ); } }