本文整理汇总了Java中org.pentaho.di.ui.core.dialog.ShowBrowserDialog类的典型用法代码示例。如果您正苦于以下问题:Java ShowBrowserDialog类的具体用法?Java ShowBrowserDialog怎么用?Java ShowBrowserDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ShowBrowserDialog类属于org.pentaho.di.ui.core.dialog包,在下文中一共展示了ShowBrowserDialog类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: displayCmdLine
import org.pentaho.di.ui.core.dialog.ShowBrowserDialog; //导入依赖的package包/类
public void displayCmdLine() {
String cmdFile = getCmdLine();
if (Const.isEmpty(cmdFile)) {
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
mb.setMessage(BaseMessages.getString(PKG, "ExportCmdLine.JobOrTransformationMissing.Message"));
mb.setText(BaseMessages.getString(PKG, "ExportCmdLine.JobOrTransformationMissing.Title"));
mb.open();
} else {
ShowBrowserDialog sbd = new ShowBrowserDialog(shell, BaseMessages.getString(PKG,
"ExportCmdLine.CommandLine.Title"), cmdFile);
sbd.open();
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:Spoon.java
示例2: displayCmdLine
import org.pentaho.di.ui.core.dialog.ShowBrowserDialog; //导入依赖的package包/类
public void displayCmdLine() {
String cmdFile = getCmdLine();
if ( Utils.isEmpty( cmdFile ) ) {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
mb.setMessage( BaseMessages.getString( PKG, "ExportCmdLine.JobOrTransformationMissing.Message" ) );
mb.setText( BaseMessages.getString( PKG, "ExportCmdLine.JobOrTransformationMissing.Title" ) );
mb.open();
} else {
ShowBrowserDialog sbd =
new ShowBrowserDialog( shell, BaseMessages.getString( PKG, "ExportCmdLine.CommandLine.Title" ), cmdFile );
sbd.open();
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:15,代码来源:Spoon.java
示例3: createHelpButton
import org.pentaho.di.ui.core.dialog.ShowBrowserDialog; //导入依赖的package包/类
public static Button createHelpButton(final Shell shell, final String title, final PluginInterface plugin) {
Button button = new Button(shell, SWT.PUSH);
button.setImage(shell.getDisplay().getSystemImage(SWT.ICON_INFORMATION));
button.setToolTipText(BaseMessages.getString(PKG, "System.Tooltip.Help"));
FormData fdButton = new FormData();
fdButton.left = new FormAttachment(0,0);
fdButton.bottom = new FormAttachment(100, 0);
button.setLayoutData(fdButton);
button.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent arg0) {
StringBuilder html = new StringBuilder();
html.append("<HTML><TITLE>").append(plugin.getName()).append("</TITLE>");
html.append("<HEAD>");
html.append("<STYLE type=\"text/css\">");
html.append("body {");
html.append(" background-color:#a7c4e2;");
html.append(" font-family:arial,helvetica,sans-serif;");
html.append(" font-size:16px;");
html.append("}");
html.append("</STYLE>");
html.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"docs/English/welcome/kettle.css\" />");
html.append("</HEAD>");
html.append("<BODY>");
html.append("<b>Name</b>: ").append(plugin.getName()).append("<br>");
html.append("<b>ID: ").append(plugin.getIds()[0]).append("<br>");
if (!Const.isEmpty(plugin.getDescription())) {
html.append("<b>Description</b>: ").append(plugin.getDescription()).append("<br>");
}
if (!Const.isEmpty(plugin.getImageFile())) {
html.append("<b>Icon</b>: ").append(plugin.getImageFile()).append("<br>");
}
if (!Const.isEmpty(plugin.getDocumentationUrl())) {
html.append("<b>Documenation</b>: <a href=\"").append(plugin.getDocumentationUrl()).append("\">").append("Click here to view the documentation").append("</a><br>");
}
if (!Const.isEmpty(plugin.getCasesUrl())) {
html.append("<b>Cases</b>: <a href=\"").append(plugin.getCasesUrl()).append("\">").append("Click here to view related PDI cases").append("</a><br>");
}
if (!Const.isEmpty(plugin.getForumUrl())) {
html.append("<b>Forum</b>: <a href=\"").append(plugin.getForumUrl()).append("\">").append("Click here to go to the forum").append("</a><br>");
}
html.append("</BODY></HTML>");
ShowBrowserDialog browserDialog = new ShowBrowserDialog(shell, title, html.toString());
browserDialog.open();
}
});
return button;
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:54,代码来源:BaseStepDialog.java
注:本文中的org.pentaho.di.ui.core.dialog.ShowBrowserDialog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论