Search in sources :

Example 1 with EnterPreviewRowsDialog

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();
    });
}
Also used : IRowMeta(org.apache.hop.core.row.IRowMeta) List(java.util.List) FileObject(org.apache.commons.vfs2.FileObject) EnterPreviewRowsDialog(org.apache.hop.ui.hopgui.dialog.EnterPreviewRowsDialog) TransformDebugMeta(org.apache.hop.pipeline.debug.TransformDebugMeta)

Aggregations

List (java.util.List)1 FileObject (org.apache.commons.vfs2.FileObject)1 IRowMeta (org.apache.hop.core.row.IRowMeta)1 TransformDebugMeta (org.apache.hop.pipeline.debug.TransformDebugMeta)1 EnterPreviewRowsDialog (org.apache.hop.ui.hopgui.dialog.EnterPreviewRowsDialog)1