use of org.apache.hop.ui.hopgui.dialog.EnterPreviewRowsDialog in project hop by apache.
the class HopGuiPipelineGraph method showLastPreviewResults.
public synchronized void showLastPreviewResults() {
if (lastPipelineDebugMeta == null || lastPipelineDebugMeta.getTransformDebugMetaMap().isEmpty()) {
return;
}
final List<String> transformnames = new ArrayList<>();
final List<IRowMeta> rowMetas = new ArrayList<>();
final List<List<Object[]>> rowBuffers = new ArrayList<>();
//
for (TransformMeta transformMeta : lastPipelineDebugMeta.getTransformDebugMetaMap().keySet()) {
TransformDebugMeta transformDebugMeta = lastPipelineDebugMeta.getTransformDebugMetaMap().get(transformMeta);
transformnames.add(transformMeta.getName());
rowMetas.add(transformDebugMeta.getRowBufferMeta());
rowBuffers.add(transformDebugMeta.getRowBuffer());
}
hopDisplay().asyncExec(() -> {
EnterPreviewRowsDialog dialog = new EnterPreviewRowsDialog(hopShell(), SWT.NONE, transformnames, rowMetas, rowBuffers);
dialog.open();
});
}
Aggregations