org.pentaho.di.core.Const.getDocUrl()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(7.2k)|赞(0)|评价(0)|浏览(233)

本文整理了Java中org.pentaho.di.core.Const.getDocUrl()方法的一些代码示例,展示了Const.getDocUrl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Const.getDocUrl()方法的具体详情如下:
包路径:org.pentaho.di.core.Const
类名称:Const
方法名:getDocUrl

Const.getDocUrl介绍

[英]Provides the documentation url with the configured base + the given URI.
[中]提供带有已配置基+给定URI的文档url。

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

this.errorHelpFile = errorHelpFile;
this.pluginFolder = pluginFolder;
this.documentationUrl = Const.getDocUrl( documentationUrl );
this.casesUrl = casesUrl;
this.forumUrl = forumUrl;

代码示例来源:origin: pentaho/pentaho-kettle

@Override
protected String extractDocumentationUrl( Annotation annotation ) {
 return Const.getDocUrl( ( (JobEntry) annotation ).documentationUrl() );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void handleEvent( Event event ) {
  if ( Desktop.isDesktopSupported() ) {
   try {
    Desktop.getDesktop().browse( new URI( Const.getDocUrl( URI_PATH ) ) );
   } catch ( Exception e ) {
    log.logError( "Error opening external browser", e );
   }
  }
 }
} );

代码示例来源:origin: pentaho/pentaho-kettle

@Override
protected String extractDocumentationUrl( Annotation annotation ) {
 return Const.getDocUrl( ( (PluginDialog) annotation ).documentationUrl() );
}

代码示例来源:origin: pentaho/pentaho-kettle

@Override
protected String extractDocumentationUrl( Annotation annotation ) {
 return Const.getDocUrl( ( (PluginDialog) annotation ).documentationUrl() );
}

代码示例来源:origin: pentaho/pentaho-kettle

@Override
protected String extractDocumentationUrl( Annotation annotation ) {
 return Const.getDocUrl( ( (Step) annotation ).documentationUrl() );
}

代码示例来源:origin: pentaho/pentaho-kettle

@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" ) );
 }
} );

代码示例来源:origin: pentaho/pentaho-kettle

@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 );
 }
} );

代码示例来源:origin: pentaho/pentaho-kettle

public boolean open() {
 mainLayout( PKG, "TransExecutionConfigurationDialog", GUIResource.getInstance().getImageTransGraph() );
 runConfigurationSectionLayout( PKG, "TransExecutionConfigurationDialog" );
 optionsSectionLayout( PKG, "TransExecutionConfigurationDialog" );
 parametersSectionLayout( PKG, "TransExecutionConfigurationDialog" );
 String docUrl =
   Const.getDocUrl( BaseMessages.getString( Spoon.class, "Spoon.TransExecutionConfigurationDialog.Help" ) );
 String docTitle = BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.docTitle" );
 String docHeader = BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.docHeader" );
 buttonsSectionLayout( PKG, "TransExecutionConfigurationDialog", docTitle, docUrl, docHeader );
 getData();
 openDialog();
 return retval;
}

代码示例来源:origin: pentaho/pentaho-kettle

public boolean open() {
 mainLayout( PKG, "JobExecutionConfigurationDialog", GUIResource.getInstance().getImageJobGraph() );
 runConfigurationSectionLayout( PKG, "TransExecutionConfigurationDialog" );
 optionsSectionLayout( PKG, "JobExecutionConfigurationDialog" );
 parametersSectionLayout( PKG, "JobExecutionConfigurationDialog" );
 String docUrl =
   Const.getDocUrl( BaseMessages.getString( Spoon.class, "Spoon.JobExecutionConfigurationDialog.Help" ) );
 String docTitle = BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.docTitle" );
 String docHeader = BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.docHeader" );
 buttonsSectionLayout( PKG, "JobExecutionConfigurationDialog", docTitle, docUrl, docHeader );
 getData();
 openDialog();
 return retval;
}

代码示例来源:origin: pentaho/big-data-plugin

public void showHelp() {
  String docUrl =
    Const.getDocUrl( BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Url" ) );

  ShowHelpDialog showHelpDialog = new ShowHelpDialog( shell,
    BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Title" ),
    docUrl,
    BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Header" ) ) {

   // Parent is modal so we have to be as well
   @Override
   protected Shell createShell( Shell parent ) {
    return new Shell( parent, SWT.CLOSE | SWT.RESIZE | SWT.MAX | SWT.MIN | SWT.APPLICATION_MODAL );
   }
  };

  showHelpDialog.open();
  showHelpDialog.dispose();
 }
}

代码示例来源:origin: pentaho/big-data-plugin

public void showHelp() {
  String docUrl =
    Const.getDocUrl( BaseMessages.getString( PKG, "HadoopConfigurationRestartXulDialog.Help.Url" ) );

  ShowHelpDialog showHelpDialog = new ShowHelpDialog( shell,
    BaseMessages.getString( PKG, "HadoopConfigurationRestartXulDialog.Help.Title" ),
    docUrl,
    BaseMessages.getString( PKG, "HadoopConfigurationRestartXulDialog.Help.Header" ) ) {

   // Parent is modal so we have to be as well
   @Override
   protected Shell createShell( Shell parent ) {
    return new Shell( parent, SWT.RESIZE | SWT.MAX | SWT.MIN | SWT.APPLICATION_MODAL );
   }
  };

  showHelpDialog.open();
  showHelpDialog.dispose();
 }
}

代码示例来源:origin: pentaho/big-data-plugin

public void showHelp() {
  String docUrl =
    Const.getDocUrl( BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Url" ) );

  ShowHelpDialog showHelpDialog = new ShowHelpDialog( shell,
    BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Title" ),
    docUrl,
    BaseMessages.getString( PKG, "HadoopConfigurationSelectionDialog.Help.Header" ) ) {

   // Parent is modal so we have to be as well
   @Override
   protected Shell createShell( Shell parent ) {
    return new Shell( parent, SWT.RESIZE | SWT.MAX | SWT.MIN | SWT.APPLICATION_MODAL );
   }
  };

  showHelpDialog.open();
  showHelpDialog.dispose();
 }
}

代码示例来源:origin: pentaho/big-data-plugin

String docUrl = Const.getDocUrl( BaseMessages.getString( PKG, "NamedClusterDialog.Shell.Doc" ) );
PluginInterface plugin =
  PluginRegistry.getInstance().findPluginWithId( LifecyclePluginType.class, /* TODO */ "HadoopSpoonPlugin" );

代码示例来源:origin: pentaho/big-data-plugin

private static RuntimeTestAction createDefaultAction( MessageGetterFactory messageGetterFactory,
                           RuntimeTestEntrySeverity severity, DocAnchor docAnchor ) {
 if ( severity == null || severity.ordinal() >= RuntimeTestEntrySeverity.WARNING.ordinal() ) {
  MessageGetter messageGetter = messageGetterFactory.create( PKG );
  String docUrl =
    Const.getDocUrl( messageGetter.getMessage( RUNTIME_TEST_RESULT_ENTRY_WITH_DEFAULT_SHIM_HELP_SHELL_DOC ) );
  if ( docAnchor != null ) {
   docUrl += messageGetter.getMessage( docAnchor.getAnchorTextKey() );
  }
  return new RuntimeTestActionImpl( messageGetter.getMessage(
   RUNTIME_TEST_RESULT_ENTRY_WITH_DEFAULT_SHIM_HELP_TROUBLESHOOTING_GUIDE ),
   docUrl, severity, new HelpUrlPayload( messageGetterFactory,
    messageGetter.getMessage(
     RUNTIME_TEST_RESULT_ENTRY_WITH_DEFAULT_SHIM_HELP_SHELL_DOC_TITLE ),
    messageGetter.getMessage(
     RUNTIME_TEST_RESULT_ENTRY_WITH_DEFAULT_SHIM_HELP_SHELL_DOC_HEADER ),
    docUrl ) );
 }
 return null;
}

代码示例来源:origin: pentaho/big-data-plugin

String docUrl = Const.getDocUrl( BaseMessages.getString( PKG, "ClusterTestResultsDialog.Shell.Doc" ) );
HelpUtils.createHelpButton( shell,
  BaseMessages.getString( PKG, "ClusterTestResultsDialog.Shell.Doc.Title" ),

相关文章