本文整理汇总了Java中org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog类的典型用法代码示例。如果您正苦于以下问题:Java EnterPreviewRowsDialog类的具体用法?Java EnterPreviewRowsDialog怎么用?Java EnterPreviewRowsDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EnterPreviewRowsDialog类属于org.pentaho.di.ui.spoon.dialog包,在下文中一共展示了EnterPreviewRowsDialog类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showLastPreviewResults
import org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog; //导入依赖的package包/类
public synchronized void showLastPreviewResults() {
if (lastTransDebugMeta == null || lastTransDebugMeta.getStepDebugMetaMap().isEmpty())
return;
final List<String> stepnames = new ArrayList<String>();
final List<RowMetaInterface> rowMetas = new ArrayList<RowMetaInterface>();
final List<List<Object[]>> rowBuffers = new ArrayList<List<Object[]>>();
// Assemble the buffers etc in the old style...
//
for (StepMeta stepMeta : lastTransDebugMeta.getStepDebugMetaMap().keySet()) {
StepDebugMeta stepDebugMeta = lastTransDebugMeta.getStepDebugMetaMap().get(stepMeta);
stepnames.add(stepMeta.getName());
rowMetas.add(stepDebugMeta.getRowBufferMeta());
rowBuffers.add(stepDebugMeta.getRowBuffer());
}
getDisplay().asyncExec(new Runnable() {
public void run() {
EnterPreviewRowsDialog dialog = new EnterPreviewRowsDialog(shell, SWT.NONE, stepnames, rowMetas, rowBuffers);
dialog.open();
}
});
}
示例2: showLastPreviewResults
import org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog; //导入依赖的package包/类
public synchronized void showLastPreviewResults() {
if ( lastTransDebugMeta == null || lastTransDebugMeta.getStepDebugMetaMap().isEmpty() ) {
return;
}
final List<String> stepnames = new ArrayList<>();
final List<RowMetaInterface> rowMetas = new ArrayList<>();
final List<List<Object[]>> rowBuffers = new ArrayList<>();
// Assemble the buffers etc in the old style...
//
for ( StepMeta stepMeta : lastTransDebugMeta.getStepDebugMetaMap().keySet() ) {
StepDebugMeta stepDebugMeta = lastTransDebugMeta.getStepDebugMetaMap().get( stepMeta );
stepnames.add( stepMeta.getName() );
rowMetas.add( stepDebugMeta.getRowBufferMeta() );
rowBuffers.add( stepDebugMeta.getRowBuffer() );
}
getDisplay().asyncExec( new Runnable() {
@Override
public void run() {
EnterPreviewRowsDialog dialog = new EnterPreviewRowsDialog( shell, SWT.NONE, stepnames, rowMetas, rowBuffers );
dialog.open();
}
} );
}