本文整理汇总了Java中org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog类的典型用法代码示例。如果您正苦于以下问题:Java RepositoryExplorerDialog类的具体用法?Java RepositoryExplorerDialog怎么用?Java RepositoryExplorerDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RepositoryExplorerDialog类属于org.pentaho.di.ui.repository.dialog包,在下文中一共展示了RepositoryExplorerDialog类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: browseVersionHistory
import org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog; //导入依赖的package包/类
public void browseVersionHistory() {
try {
if (spoon.rep.exists(transMeta.getName(), transMeta.getRepositoryDirectory(), RepositoryObjectType.TRANSFORMATION)) {
RepositoryRevisionBrowserDialogInterface dialog = RepositoryExplorerDialog.getVersionBrowserDialog(shell, spoon.rep, transMeta);
String versionLabel = dialog.open();
if (versionLabel!=null) {
spoon.loadObjectFromRepository(transMeta.getName(), transMeta.getRepositoryElementType(), transMeta.getRepositoryDirectory(), versionLabel);
}
} else {
MessageBox box = new MessageBox(shell, SWT.CLOSE | SWT.ICON_ERROR);
box.setText("Sorry"); //$NON-NLS-1$
box.setMessage("Can't find this transformation in the repository"); //$NON-NLS-1$
box.open();
}
} catch (Exception e) {
new ErrorDialog(shell, BaseMessages.getString(PKG, "TransGraph.VersionBrowserException.Title"), BaseMessages.getString(PKG, "TransGraph.VersionBrowserException.Message"), e); //$NON-NLS-1$ //$NON-NLS-2$
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:TransGraph.java
示例2: browseVersionHistory
import org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog; //导入依赖的package包/类
public void browseVersionHistory() {
try {
if ( spoon.rep.exists( transMeta.getName(), transMeta.getRepositoryDirectory(),
RepositoryObjectType.TRANSFORMATION ) ) {
RepositoryRevisionBrowserDialogInterface dialog =
RepositoryExplorerDialog.getVersionBrowserDialog( shell, spoon.rep, transMeta );
String versionLabel = dialog.open();
if ( versionLabel != null ) {
spoon.loadObjectFromRepository( transMeta.getName(), transMeta.getRepositoryElementType(), transMeta
.getRepositoryDirectory(), versionLabel );
}
} else {
MessageBox box = new MessageBox( shell, SWT.CLOSE | SWT.ICON_ERROR );
box.setText( "Sorry" );
box.setMessage( "Can't find this transformation in the repository" );
box.open();
}
} catch ( Exception e ) {
new ErrorDialog( shell, BaseMessages.getString( PKG, "TransGraph.VersionBrowserException.Title" ), BaseMessages
.getString( PKG, "TransGraph.VersionBrowserException.Message" ), e );
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:TransGraph.java
示例3: browseVersionHistory
import org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog; //导入依赖的package包/类
public void browseVersionHistory() {
try {
RepositoryRevisionBrowserDialogInterface dialog = RepositoryExplorerDialog.getVersionBrowserDialog(shell, spoon.rep, jobMeta);
String versionLabel = dialog.open();
if (versionLabel!=null) {
spoon.loadObjectFromRepository(jobMeta.getName(), jobMeta.getRepositoryElementType(), jobMeta.getRepositoryDirectory(), versionLabel);
}
} catch (Exception e) {
new ErrorDialog(shell, BaseMessages.getString(PKG, "JobGraph.VersionBrowserException.Title"), BaseMessages.getString(PKG, "JobGraph.VersionBrowserException.Message"), e);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:12,代码来源:JobGraph.java
示例4: browseVersionHistory
import org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog; //导入依赖的package包/类
public void browseVersionHistory() {
try {
RepositoryRevisionBrowserDialogInterface dialog =
RepositoryExplorerDialog.getVersionBrowserDialog( shell, spoon.rep, jobMeta );
String versionLabel = dialog.open();
if ( versionLabel != null ) {
spoon.loadObjectFromRepository( jobMeta.getName(), jobMeta.getRepositoryElementType(), jobMeta
.getRepositoryDirectory(), versionLabel );
}
} catch ( Exception e ) {
new ErrorDialog(
shell, BaseMessages.getString( PKG, "JobGraph.VersionBrowserException.Title" ), BaseMessages.getString(
PKG, "JobGraph.VersionBrowserException.Message" ), e );
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:JobGraph.java
注:本文中的org.pentaho.di.ui.repository.dialog.RepositoryExplorerDialog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论